com.resilientedge.util.test
Class Tester

java.lang.Object
  |
  +--com.resilientedge.util.test.Tester
Direct Known Subclasses:
ZTester

public abstract class Tester
extends java.lang.Object

This class is a base class for Tester classes that run test cases defined in an ASCII file.

Author:
jgardner

Constructor Summary
Tester()
           
 
Method Summary
protected static void addClass(java.lang.String className)
          Adds a feature to the Class attribute of the Tester class
protected static void addClassToGroup(java.lang.Class aClass, junit.framework.TestSuite group)
          See if the class arg has a static group() method.
protected static java.util.Vector getClasses()
          Gets the Classes attribute of the Tester class
protected static int getCount()
          Gets the Count attribute of the Tester class
static junit.framework.Test group()
          Method Description
protected static void readFile(java.lang.String fileName)
          Method Description
static void runGroup()
          Method Description
protected static void setCount(int count)
          Sets the Count attribute of the Tester class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tester

public Tester()
Method Detail

runGroup

public static void runGroup()
Method Description

group

public static junit.framework.Test group()
Method Description
Returns:
Returned Value Description

setCount

protected static void setCount(int count)
Sets the Count attribute of the Tester class
Parameters:
count - The new Count value

getCount

protected static int getCount()
Gets the Count attribute of the Tester class
Returns:
The Count value

getClasses

protected static java.util.Vector getClasses()
Gets the Classes attribute of the Tester class
Returns:
The Classes value

addClassToGroup

protected static void addClassToGroup(java.lang.Class aClass,
                                      junit.framework.TestSuite group)
See if the class arg has a static group() method. If so, invoke and add the returned Test. Otherwise, just create a new TestSuite with the class and add it to the global group.
Parameters:
aClass - the class to add to the group
group - the (global) test group to contain the new test(s)

readFile

protected static void readFile(java.lang.String fileName)
                        throws java.lang.Exception
Method Description
Parameters:
fileName - Parameter Description
Throws:
java.lang.Exception - Exception Description

addClass

protected static void addClass(java.lang.String className)
Adds a feature to the Class attribute of the Tester class
Parameters:
className - The feature to be added to the Class attribute


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.