|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--unitee.server.DefaultTest
Constructor Summary | |
protected |
DefaultTest()
|
protected |
DefaultTest(java.lang.String name)
|
protected |
DefaultTest(java.lang.String name,
TestSuite parent)
|
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()
Returns the name of the test. |
TestSuite |
getParent()
Returns the TestSuite that holds this test. |
java.lang.String |
getQualifiedName()
|
TestParameters |
getTestParameters()
Returns the test parameters that are used by this test. |
abstract void |
init()
Initializes the test. |
void |
setName(java.lang.String newName)
Sets the name of test to newTest. |
void |
setParent(TestSuite newParent)
|
void |
setTestParameters(TestParameters params)
|
abstract void |
test(TestReport report)
Runs the test. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected DefaultTest()
protected DefaultTest(java.lang.String name)
protected DefaultTest(java.lang.String name, TestSuite parent)
Method Detail |
public java.lang.String getName()
public java.lang.String getQualifiedName()
public abstract 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 abstract 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 |