public class TestCommandLineTokenizer
extends junit.framework.TestCase
CommandLineTokenizer
Constructor and Description |
---|
TestCommandLineTokenizer() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.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.
|
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 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(java.lang.String[] args)
args
- the argument array that CommandLineTokenizer.tokenize()
should produce.Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap