|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--unitee.server.DefaultTest | +--unitee.server.DefaultTestSuite
Test suite is testable too. Testing a TestSuite means to run all test cases and nested TestSuites of the test suite. The test suite has two states: construction time and production time. Construction time is when the suite is being built (on system start up) and production is thereafter. Most of the suite data is managed by the states.
Constructor Summary | |
DefaultTestSuite()
|
|
DefaultTestSuite(java.lang.String name)
|
Method Summary | |
void |
addTest(Test test)
Adds a test into this suite. |
TestSuite |
asSuite()
Tries to transform this class into TestSuite. |
void |
endConstructionMode()
Ends construction mode. |
Test |
findTest(java.lang.String qualifiedName)
Searches for a test in this test suite and in the child suites. |
Test[] |
getTests()
Returns all tests (both test case holders and test suites). |
void |
init()
Initializes all tests within this suite. |
void |
relocate(int oldIndex,
int newIndex)
Relocates a test within this test suite and shrinks the array. |
void |
removeTest(Test test)
Deletes a test from this suite. |
void |
test(TestReport report)
Calls test() for every test within this suite. |
Methods inherited from class unitee.server.DefaultTest |
asTestCase,
getName,
getParent,
getQualifiedName,
getTestParameters,
setName,
setParent,
setTestParameters |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DefaultTestSuite()
public DefaultTestSuite(java.lang.String name)
Method Detail |
public void endConstructionMode()
public void addTest(Test test)
public void removeTest(Test test)
public Test[] getTests()
public void init() throws ParameterException
public TestSuite asSuite()
public void test(TestReport report)
report
- The report to which results will be logged.public void relocate(int oldIndex, int newIndex)
If your array is - [ a b c d e f ] , and you run relocate(2,5)
You will get --> [ a c d e b f ].
If your array is - [ a b c d e f ] , and you run relocate(5,2)
You will get --> [ a e b c d f ].
do nothing.
public Test findTest(java.lang.String qualifiedName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |