public class TestSwitch
extends junit.framework.TestCase
Constructor and Description |
---|
TestSwitch(java.lang.String name)
Creates a new test case with the specified name.
|
Modifier and Type | Method and Description |
---|---|
static junit.framework.Test |
suite()
Returns a suite of tests defined by this class
|
void |
testID()
Tests the ability to retrieve the Switch's ID.
|
void |
testLongFlag()
Tests the ability to set/get the Switch's long flag.
|
void |
testShortFlag()
Tests the ability to set/get the Switch's short flag.
|
void |
testSwitchParse()
Tests the parsing ability of the Switch.
|
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
public TestSwitch(java.lang.String name)
name
- the name for this test case.public static junit.framework.Test suite()
public void testID()
public void testShortFlag()
public void testLongFlag()
public void testSwitchParse()
Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap