com.martiansoftware.jsap
Class TestFlaggedOption

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.martiansoftware.jsap.TestFlaggedOption
All Implemented Interfaces:
junit.framework.Test

public class TestFlaggedOption
extends junit.framework.TestCase

Author:
Marty Lamb

Constructor Summary
TestFlaggedOption(String name)
          Creates a TestCase with the specified name.
 
Method Summary
static junit.framework.Test suite()
          Returns a suite of all tests defined in this class.
 void testLongFlag()
          Tests the ability to set/get long flags.
 void testShortFlag()
          Tests the ability to set/get short flags.
 
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

TestFlaggedOption

public TestFlaggedOption(String name)
Creates a TestCase with the specified name.

Parameters:
name - the name for this TestCase.
Method Detail

suite

public static junit.framework.Test suite()
Returns a suite of all tests defined in this class.

Returns:
a suite of all tests defined in this class.

testShortFlag

public void testShortFlag()
Tests the ability to set/get short flags.


testLongFlag

public void testLongFlag()
Tests the ability to set/get long flags.



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