|
JNodeOS v1.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.tests.Tester
The Tester class is used as a base for a class which does testing.
Field Summary | |
static int |
ENV_DEBUG
|
static int |
ENV_EXPOSED
|
static java.lang.String[] |
ENV_NAMES
String names for the environment identifiers |
static int |
ENV_NDEBUG
|
static int |
ENV_NONE
Flags that are used to encode the build environment |
Constructor Summary | |
Tester()
|
Method Summary | |
protected boolean |
enterSection(int environment,
java.lang.String desc)
Used to indicate that the tester class is entering a new section of testing. |
java.lang.String |
getSection()
Get description of the current section |
protected void |
test(boolean value)
Test a boolean value and throw a TestFailedException if it was false |
protected void |
test(java.lang.String name,
boolean value)
Test a boolean value and throw a TestFailedException if it was false |
static void |
testClass(java.lang.Class cl)
Test the given class object |
static void |
testClass(java.lang.String name)
Overloaded method |
abstract void |
testUnit()
Run the actual tests |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int ENV_NONE
public static final int ENV_DEBUG
public static final int ENV_NDEBUG
public static final int ENV_EXPOSED
public static final java.lang.String[] ENV_NAMES
Constructor Detail |
public Tester()
Method Detail |
protected boolean enterSection(int environment, java.lang.String desc)
environment
- The required environment for this sectiondesc
- A string naming/describing this sectionpublic java.lang.String getSection()
protected void test(boolean value) throws TestFailedException
protected void test(java.lang.String name, boolean value) throws TestFailedException
public abstract void testUnit() throws TestFailedException
public static void testClass(java.lang.Class cl)
cl
- A subclass of Tester that implements testUnitpublic static void testClass(java.lang.String name)
name
- The name of the class to be tested
|
JNodeOS v1.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |