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, setParent
protected 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 String getName()
AbstractTest
Test
's name.getName
in interface Test
getName
in class AbstractTest
public void setName(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
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.