|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An internal abstraction of test. This interface serves as a wrapper for all user tests.
Method Summary | |
TestSuite |
asSuite()
Tries to transform this AbstractTest into a TestSuite. |
TestCaseHolder |
asTestCase()
Tries to transform this AbstractTest into a TestCaseHolder. |
java.lang.String |
getName()
|
TestSuite |
getParent()
|
java.lang.String |
getQualifiedName()
|
TestParameters |
getTestParameters()
|
void |
init()
|
void |
setName(java.lang.String newName)
|
void |
setParent(TestSuite newParent)
|
void |
setTestParameters(TestParameters params)
|
void |
test(TestReport report)
Runs the test. |
Method Detail |
public java.lang.String getName()
public java.lang.String getQualifiedName()
public void init() throws ParameterException
public TestSuite asSuite()
public TestCaseHolder asTestCase()
public void setName(java.lang.String newName)
newName
- public TestSuite getParent()
public void setParent(TestSuite newParent)
newParent
- public TestParameters getTestParameters()
public void setTestParameters(TestParameters params)
params
- public void test(TestReport report)
report.testFailed()
.Every exception wether it is a system/fatal exception , internal test errors (due to bad programming , etc.) , failed assertions or exceptions thrown from the tested unit must be logged , so the test user can be notified.
If the test developer developes pesimistic test cases (which are recommanded) , any exception that is expected to be raised under these conditions , may be logged , but it must not fail the Test.
report
- The report to which results will be logged.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |