|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--RtjAocsFramework.GeneralUtilities.TestCase
Base class for test cases.
This class is not part of the AOCS Framework proper. It is used in the test harnesses as the base class from which test case classes can be derived.
Copyright: see the Copyright Notice.
| Field Summary | |
static boolean |
TEST_FAILURE
|
static boolean |
TEST_SUCCESS
|
| Constructor Summary | |
TestCase(int id,
String name)
|
|
| Method Summary | |
String |
getFailureMessage()
|
String |
getTestName()
|
boolean |
getTestOutcome()
|
abstract void |
runTestCase()
Causes the test to be executed. |
protected void |
setTestResult(boolean outcome,
String msg)
Set the test results. |
boolean |
setUpTestCase()
Perform test set up prior to the test being run. |
boolean |
shutDownTestCase()
Perform test shut down after test execution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean TEST_FAILURE
public static boolean TEST_SUCCESS
| Constructor Detail |
public TestCase(int id,
String name)
| Method Detail |
public boolean setUpTestCase()
This method is intended to be called before runTestCase to perform the test set up.
public abstract void runTestCase()
public boolean shutDownTestCase()
This method intended to be called after runTestCase to perform the test shut down.
protected void setTestResult(boolean outcome,
String msg)
outcome - true if test succeeded, false otherwisemsg - if test failed, explains the nature of the failurepublic String getTestName()
public boolean getTestOutcome()
public String getFailureMessage()
|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||