public class DefaultTestSuite extends AbstractTest implements TestSuite
TestSuite
interface.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
This Test's name
|
protected java.util.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 . |
java.lang.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(java.lang.String name)
Sets this test's name
|
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setParent
private java.lang.String name
protected java.util.List tests
public void addTest(Test test)
Test
to the suitepublic void removeTest(Test test)
Test
from the suite.removeTest
in interface TestSuite
public TestReport runImpl()
runImpl
in class AbstractTest
public java.lang.String getName()
AbstractTest
Test
's name.getName
in interface Test
getName
in class AbstractTest
public void setName(java.lang.String name)
AbstractTest
setName
in class AbstractTest
public Test[] getChildrenTests()
TestSuite
Test
. 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 TestSuite
public int getChildrenCount()
getChildrenCount
in interface TestSuite