Package com.martiansoftware.jsap
Class TestFlaggedOption
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.martiansoftware.jsap.TestFlaggedOption
- All Implemented Interfaces:
junit.framework.Test
public class TestFlaggedOption
extends junit.framework.TestCase
- Author:
- Marty Lamb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic junit.framework.Test
suite()
Returns a suite of all tests defined in this class.void
Tests the ability to set/get long flags.void
Tests the ability to set/get short flags.Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
-
Constructor Details
-
TestFlaggedOption
Creates a TestCase with the specified name.- Parameters:
name
- the name for this TestCase.
-
-
Method Details
-
suite
public static junit.framework.Test suite()Returns a suite of all tests defined in this class.- Returns:
- a suite of all tests defined in this class.
-
testShortFlag
public void testShortFlag()Tests the ability to set/get short flags. -
testLongFlag
public void testLongFlag()Tests the ability to set/get long flags.
-