|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TestSuite is a compound test entity. It can hold references to TestCases and TestSuites beneeth it. Test suite is testable too. Testing a TestSuite means to run all test cases and nested TestSuites of the test suite.
Method Summary | |
void |
addTest(Test test)
Adds a test case into this suite. |
TestSuite |
asSuite()
Tries to transform this AbstractTest into a TestSuite. |
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 interface unitee.common.Test |
asTestCase,
getName,
getParent,
getQualifiedName,
getTestParameters,
setName,
setParent,
setTestParameters |
Method Detail |
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 |