Class TestSwitch
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.martiansoftware.jsap.TestSwitch
- All Implemented Interfaces:
junit.framework.Test
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic junit.framework.Testsuite()Returns a suite of tests defined by this classvoidtestID()Tests the ability to retrieve the Switch's ID.voidTests the ability to set/get the Switch's long flag.voidTests the ability to set/get the Switch's short flag.voidTests the parsing ability of the Switch.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
-
TestSwitch
Creates a new test case with the specified name.- Parameters:
name- the name for this test case.
-
-
Method Details
-
suite
public static junit.framework.Test suite()Returns a suite of tests defined by this class- Returns:
- a suite of tests defined by this class
-
testID
public void testID()Tests the ability to retrieve the Switch's ID. -
testShortFlag
public void testShortFlag()Tests the ability to set/get the Switch's short flag. -
testLongFlag
public void testLongFlag()Tests the ability to set/get the Switch's long flag. -
testSwitchParse
public void testSwitchParse()Tests the parsing ability of the Switch.
-