|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.testing.unit.TestGroup
public abstract class TestGroup
UNIT testing tool. An group of tests. Collect test suites with this. You can flag whether to throw exceptions on aborts or fails (both are on by default). Aborts will always be thrown before fails, even if a condition would cause both (such as an initialization or framework problem).
Version History
EPG - Initial - 1 AUG 04
Field Summary | |
---|---|
int |
abort
|
int |
exception
|
int |
fail
|
java.lang.String |
groupLongName
|
java.lang.String |
groupName
|
int |
inconclusive
|
StringPoster |
logger
|
int |
pass
|
ThingsPropertyView |
properties
|
Result |
result
|
java.lang.String |
runnerName
|
long |
time
|
int |
total
|
long |
totalSize
|
Constructor Summary | |
---|---|
TestGroup()
|
Method Summary | |
---|---|
void |
DECLAREGROUP(java.lang.String name,
java.lang.String className)
DECLARE a group. |
void |
DECLARETEST(java.lang.String name,
java.lang.String className)
DECLARE a test. |
void |
execute()
Run this group |
java.lang.String |
getLongName()
Get the long name of this group. |
java.lang.String |
getName()
Get the name of this group |
abstract void |
group_execute()
Run the group. |
abstract void |
group_prepare()
prepare for the group run. |
void |
prepare(java.lang.String runnerNaming,
java.lang.String givenName,
ResultExpresser expresserIn,
StringPoster logIn,
ThingsPropertyView view,
int inDepth)
Init this group |
Result |
RUN(java.lang.String name)
Run a test class as named. |
void |
RUNGROUP(java.lang.String name)
Run a test class as named. |
void |
SET_LONG_NAME(java.lang.String name)
Set the long name for this group. |
void |
SET_THROW_ABORTS(boolean flag)
Set the Throw Exception on Test Aborts on (true) or off(false). |
void |
SET_THROW_FAILS(boolean flag)
Set the Throw Exception on Test Fail on (true) or off(false). |
void |
THE_BUCK_STOPS_HERE()
Don't let any throws or aborts escape. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String groupName
public java.lang.String groupLongName
public ThingsPropertyView properties
public java.lang.String runnerName
public StringPoster logger
public int total
public long time
public int pass
public int fail
public int abort
public int inconclusive
public int exception
public long totalSize
public Result result
Constructor Detail |
---|
public TestGroup()
Method Detail |
---|
public abstract void group_prepare() throws java.lang.Throwable
java.lang.Throwable
public abstract void group_execute() throws java.lang.Throwable
java.lang.Throwable
public void THE_BUCK_STOPS_HERE()
public void SET_THROW_FAILS(boolean flag)
flag
- true is on, false is offpublic void SET_THROW_ABORTS(boolean flag)
flag
- true is on, false is offpublic void SET_LONG_NAME(java.lang.String name)
name
- the long name as a string.public void DECLARETEST(java.lang.String name, java.lang.String className) throws ThingsException
name
- the name of the test. It should be unique.className
- the name of the class that implements this test.
ThingsException
public void DECLAREGROUP(java.lang.String name, java.lang.String className) throws ThingsException
name
- the name of the group. It should be unique.className
- the name of the class that implements this group.
ThingsException
public Result RUN(java.lang.String name) throws ThingsException
name
- of the class to run
ThingsException
public void RUNGROUP(java.lang.String name) throws ThingsException
name
- of the class to run
ThingsException
public java.lang.String getName() throws ThingsException
ThingsException
public java.lang.String getLongName() throws ThingsException
ThingsException
public void prepare(java.lang.String runnerNaming, java.lang.String givenName, ResultExpresser expresserIn, StringPoster logIn, ThingsPropertyView view, int inDepth) throws ThingsException
runnerNaming
- is the name giving to the test run by the running agentgivenName
- the name given to this group.expresserIn
- is the ResultExpresser to use.logIn
- is a StringPoster for logging.view
- is a properties view that will be avaible to the test
implementationinDepth
- the depth of this group.
ThingsException
ThingsPropertyView
public void execute() throws java.lang.Throwable
ThingsException
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |