|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--complexlib.ComplexTestCase
Base class for all complex tests.
Inner Class Summary | |
class |
ComplexTestCase.AssureException
|
Field Summary | |
static boolean |
BREAK
End a test if it did fail |
static boolean |
CONTINUE
Continue a test even if it did fail |
protected static LogWriter |
log
Log writer |
protected String |
message
The message if the test did fail |
protected int |
mThreadTimeOut
Maximal time one method is allowed to execute Can be set with parameter 'ThreadTimeOut' |
protected static TestParameters |
param
The test parameters |
protected boolean |
state
State of the current test method |
protected DescEntry |
subEntry
Description entry |
Constructor Summary | |
ComplexTestCase()
|
Method Summary | |
protected void |
addResult(String message,
boolean state)
Deprecated. |
protected void |
assure(boolean s)
Assure that s is true. |
protected void |
assure(String msg,
boolean s)
Assure that s is true. |
protected void |
assure(String msg,
boolean s,
boolean cont)
Assure that s is true. |
void |
executeMethods(DescEntry entry,
TestParameters environment)
Call test. |
protected void |
failed()
Mark the currently executed method as failed. |
protected void |
failed(String msg)
Mark the currently executed method as failed. |
protected void |
failed(String msg,
boolean cont)
Mark the currently executed method as failed. |
abstract String[] |
getTestMethodNames()
Implement this method in the Complex test. |
String |
getTestObjectName()
Return a name for the test or tested object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static TestParameters param
protected static LogWriter log
protected DescEntry subEntry
protected boolean state
protected String message
protected int mThreadTimeOut
public static final boolean CONTINUE
public static final boolean BREAK
Constructor Detail |
public ComplexTestCase()
Method Detail |
public void executeMethods(DescEntry entry, TestParameters environment)
method
- The name of the test method that should be called.environment
- The environment for the test.public abstract String[] getTestMethodNames()
getTestMethodNames
in interface ComplexTest
public String getTestObjectName()
getTestObjectName
in interface ComplexTest
protected void assure(boolean s)
s
- The condition that should be true.protected void assure(String msg, boolean s)
msg
- The message that is evaluated.s
- The condition that should be true.protected void failed()
protected void failed(String msg)
msg
- The message of the failure.protected void assure(String msg, boolean s, boolean cont)
msg
- The message that is evaluated.s
- The condition that should be true.cont
- Continue with test method, even if s is false.protected void failed(String msg, boolean cont)
msg
- The message that is evaluated.cont
- Continue with test method, even if s is false.protected void addResult(String message, boolean state)
|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |