frysk.hpd
Class TestParameterizedCommand
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
frysk.junit.TestCase
frysk.testbed.TestLib
frysk.hpd.TestLib
frysk.hpd.TestParameterizedCommand
- All Implemented Interfaces:
- Test
public class TestParameterizedCommand
- extends TestLib
Methods inherited from class frysk.testbed.TestLib |
addToTearDown, addToTearDown, assertRunToFindProc, assertRunUntilStop, assertRunUntilStop, getExecPath, isChildOf, isChildOfMine, isDescendantOf, isDescendantOfMine, runPending |
Methods inherited from class frysk.junit.TestCase |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, getTimeoutMilliseconds, getTimeoutSeconds, missing32or64, unresolved, unresolvedOffUtrace, unresolvedOn32On64, unresolvedOnIA32, unresolvedOnPPC, unresolvedOnUtrace, unresolvedOnx8664, unsupported |
Methods inherited from class junit.framework.Assert |
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, fail, fail |
command
private ParameterizedCommand command
argument
private String argument
input
private Input input
parsedOption
private boolean parsedOption
interpreted
private boolean interpreted
helped
private boolean helped
TestParameterizedCommand
public TestParameterizedCommand()
setUp
public void setUp()
- Description copied from class:
TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
- Overrides:
setUp
in class TestLib
tearDown
public void tearDown()
- Description copied from class:
TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
- Overrides:
tearDown
in class TestLib
parse
private void parse(String string)
check
private void check(String string,
String stringValue,
String[] parameters,
boolean parsedOption,
String argument)
testDashDash
public void testDashDash()
testRegular
public void testRegular()
testRegularDashDash
public void testRegularDashDash()
testOption
public void testOption()
testOptionAfterDashDash
public void testOptionAfterDashDash()
testOptionBeforeDashDash
public void testOptionBeforeDashDash()
testOptionWithArg
public void testOptionWithArg()
testOptionWithArgAfterDashDash
public void testOptionWithArgAfterDashDash()
testOptionWithArgBeforeDashDash
public void testOptionWithArgBeforeDashDash()
testOptionWithDashArg
public void testOptionWithDashArg()
checkInvalid
private void checkInvalid(String string)
testMissingArg
public void testMissingArg()
testUnknownOpt
public void testUnknownOpt()
testShortAmbigiousOption
public void testShortAmbigiousOption()
testShortUnambigiousOption
public void testShortUnambigiousOption()
testHelp
public void testHelp()