public class DefaultTestSuite extends AbstractTest implements TestSuite
TestSuite interface.| Modifier and Type | Field and Description |
|---|---|
protected List |
tests
Stores the list of child tests
|
id, parent| Constructor and Description |
|---|
DefaultTestSuite() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTest(Test test)
Adds a
Test to the suite |
int |
getChildrenCount()
Returns the number of child tests
|
Test[] |
getChildrenTests()
Returns this suite's
Test. |
String |
getName()
Returns this
Test's name. |
void |
removeTest(Test test)
Removes a
Test from the suite. |
TestReport |
runImpl()
Runs the tests and returns a report
|
void |
setName(String name)
Sets this test's name
|
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setParentprotected List tests
public void addTest(Test test)
Test to the suitepublic void removeTest(Test test)
Test from the suite.removeTest in interface TestSuitepublic TestReport runImpl()
runImpl in class AbstractTestpublic String getName()
AbstractTestTest's name.getName in interface TestgetName in class AbstractTestpublic void setName(String name)
AbstractTestsetName in class AbstractTestpublic Test[] getChildrenTests()
TestSuiteTest. This should
not return a reference to any internal structure
held by the TestSuite. For example, if
an internal array is used, this shoudl return
a copy of that array.getChildrenTests in interface TestSuitepublic int getChildrenCount()
getChildrenCount in interface TestSuiteCopyright © 2000–2020 Apache Software Foundation. All rights reserved.