Package com.martiansoftware.jsap
Class TestOption
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.martiansoftware.jsap.TestOption
-
- All Implemented Interfaces:
junit.framework.Test
public class TestOption extends junit.framework.TestCase
Tests the Option class- Author:
- Marty Lamb
-
-
Constructor Summary
Constructors Constructor Description TestOption()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static junit.framework.Test
suite()
Returns a suite of tests defined by this class.void
testParsing()
Tests the ability to parse via the option's parse() method.void
testSettersAndGetters()
Tests the various setters and getters on an 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
-
-
-
-
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.
-
testSettersAndGetters
public void testSettersAndGetters()
Tests the various setters and getters on an option.
-
testParsing
public void testParsing()
Tests the ability to parse via the option's parse() method.
-
-