com.martiansoftware.jsap
Class TestOption

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.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
TestOption()
           
 
Method Summary
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
countTestCases, getName, run, run, runBare, setName, toString
 
Methods 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, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestOption

public TestOption()
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.



Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap