Package com.martiansoftware.jsap
Class TestUsageString
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.martiansoftware.jsap.TestUsageString
-
- All Implemented Interfaces:
junit.framework.Test
public class TestUsageString extends junit.framework.TestCaseTests the ability to automatically create usage information.- Author:
- Marty Lamb
-
-
Constructor Summary
Constructors Constructor Description TestUsageString(String arg0)Creates a new TestCase with the specified name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static junit.framework.Testsuite()Returns a suite of tests defined by this class.voidtestUsage1()Tests usage info for a single option, both required and not required.voidtestUsage2()Tests usage info for a Switch.-
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 Detail
-
TestUsageString
public TestUsageString(String arg0)
Creates a new TestCase with the specified name.- Parameters:
arg0- the name for this TestCase.
-
-
Method Detail
-
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.
-
testUsage1
public void testUsage1()
Tests usage info for a single option, both required and not required.
-
testUsage2
public void testUsage2()
Tests usage info for a Switch.
-
-