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.TestCase
Tests the ability to automatically create usage information.
- Author:
- Marty Lamb
-
Constructor Summary
Constructors Constructor Description TestUsageString(java.lang.String arg0)Creates a new TestCase with the specified name. -
Method Summary
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
countTestCases, getName, run, run, runBare, setName, toStringMethods 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, failMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TestUsageString
public TestUsageString(java.lang.String arg0)Creates a new TestCase with the specified name.- Parameters:
arg0- the name for this TestCase.
-
-
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.
-
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.
-