Package com.martiansoftware.jsap
Class TestParser
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.martiansoftware.jsap.TestParser
- All Implemented Interfaces:
junit.framework.Test
public class TestParser
extends junit.framework.TestCase
Tests the Parser class.
- Author:
- Marty Lamb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic junit.framework.Test
suite()
Returns a suite of tests defined by this class.void
Tests the ability to parse when allowMultipleDeclarations is set to true.void
Tests the parser with both a String and an Integer option.Methods inherited from class junit.framework.TestCase
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
-
Constructor Details
-
TestParser
public TestParser()
-
-
Method Details
-
suite
public static junit.framework.Test suite()Returns a suite of tests defined by this class.- Returns:
- a suite of tests defined by this class.
-
testMultipleDeclarations
public void testMultipleDeclarations()Tests the ability to parse when allowMultipleDeclarations is set to true. -
testParser
public void testParser()Tests the parser with both a String and an Integer option.
-