frysk.hpd
Class TestParameterizedCommand

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by frysk.junit.TestCase
              extended by frysk.testbed.TestLib
                  extended by frysk.hpd.TestLib
                      extended by frysk.hpd.TestParameterizedCommand
All Implemented Interfaces:
Test

public class TestParameterizedCommand
extends TestLib


Field Summary
private  String argument
           
private  ParameterizedCommand command
           
private  boolean helped
           
private  Input input
           
private  boolean interpreted
           
private  boolean parsedOption
           
 
Fields inherited from class frysk.hpd.TestLib
child, e, prompt
 
Fields inherited from class frysk.testbed.TestLib
host
 
Constructor Summary
TestParameterizedCommand()
           
 
Method Summary
private  void check(String string, String stringValue, String[] parameters, boolean parsedOption, String argument)
           
private  void checkInvalid(String string)
           
private  void parse(String string)
           
 void setUp()
          Sets up the fixture, for example, open a network connection.
 void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testDashDash()
           
 void testHelp()
           
 void testMissingArg()
           
 void testOption()
           
 void testOptionAfterDashDash()
           
 void testOptionBeforeDashDash()
           
 void testOptionWithArg()
           
 void testOptionWithArgAfterDashDash()
           
 void testOptionWithArgBeforeDashDash()
           
 void testOptionWithDashArg()
           
 void testRegular()
           
 void testRegularDashDash()
           
 void testShortAmbigiousOption()
           
 void testShortUnambigiousOption()
           
 void testUnknownOpt()
           
 
Methods inherited from class frysk.hpd.TestLib
getChild
 
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.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

command

private ParameterizedCommand command

argument

private String argument

input

private Input input

parsedOption

private boolean parsedOption

interpreted

private boolean interpreted

helped

private boolean helped
Constructor Detail

TestParameterizedCommand

public TestParameterizedCommand()
Method Detail

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()