|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.martiansoftware.jsap.TestCommandLineTokenizer
This junit TestCase runs a barrage of tests against the CommandLineTokenizer. This TestCase is unusual for this project in that it contains a main() method; this method is used to generate test methods to paste into this class.
CommandLineTokenizer
Constructor Summary | |
TestCommandLineTokenizer()
|
Method Summary | |
static void |
main(String[] args)
A helper method to write additional test cases based upon the specified argument array. |
static junit.framework.Test |
suite()
Creates and returns a new Test based upon this class. |
void |
test1()
Tests for correct parsing of [this is a test]. |
void |
test10()
Tests for correct parsing of ["this is a test] |
void |
test2()
Tests for corect parsing of [this is a "test"] |
void |
test3()
Tests for correct parsing of ["this is a test"] |
void |
test4()
Tests for correct parsing of [this is a "test] |
void |
test5()
Tests for correct parsing of [thi\s is a \"test] |
void |
test6()
Tests for correct parsing of [thi\s is a \"test\\] |
void |
test7()
Tests for correct parsing of [thi\s is a \"test\\\"] |
void |
test8()
Tests for correct parsing of a null command line. |
void |
test9()
Tests for correct parsing of a whitespace-only command line. |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, run, run, runBare, 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, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TestCommandLineTokenizer()
Method Detail |
public static junit.framework.Test suite()
public void test1()
public void test2()
public void test3()
public void test4()
public void test5()
public void test6()
public void test7()
public void test8()
public void test9()
public void test10()
public static void main(String[] args)
args
- the argument array that CommandLineTokenizer.tokenize()
should produce.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |