com.bristle.javalib.util
Class GetOpt.Tester

java.lang.Object
  extended by com.bristle.javalib.util.GetOpt.Tester
Enclosing class:
GetOpt

public static class GetOpt.Tester
extends Object

Each class contains a Tester inner class with a main() for easier unit testing. To call main from the command line, use:

   java class$Tester
where "class" is the name of the outer class.


Constructor Summary
GetOpt.Tester()
           
 
Method Summary
private static void doTest(Integer intOut, Integer intValid)
           
private static void doTest(String strOut, String strValid)
           
static void main(String[] args)
          Main testing method.
private static void reportCaught(Exception e)
           
private static void reportNotCaught()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetOpt.Tester

public GetOpt.Tester()
Method Detail

doTest

private static void doTest(String strOut,
                           String strValid)

doTest

private static void doTest(Integer intOut,
                           Integer intValid)

reportCaught

private static void reportCaught(Exception e)

reportNotCaught

private static void reportNotCaught()

main

public static void main(String[] args)
Main testing method.

Parameters:
args - Array of command line argument strings