public class SimpleTestSuiteResult extends TestSuiteResult
TestSuiteResult
.testInfo
Constructor and Description |
---|
SimpleTestSuiteResult(java.lang.String suiteName,
java.lang.String suiteDesc)
Constructs a
SimpleTestSuiteResult with the suite name and
description. |
SimpleTestSuiteResult(TestInfo info)
Constructs a
SimpleTestSuiteResult with the suite information. |
Modifier and Type | Method and Description |
---|---|
void |
add(TestResult testResult,
TestResult... testResults)
Adds test results to this object.
|
void |
addAll(java.util.Collection<TestResult> testResults)
Adds a collection of test results.
|
java.lang.String |
getSummary()
Gets the summary of the test run.
|
java.util.Iterator<TestResult> |
iterator() |
boolean |
remove(TestResult result)
Removes a test result from this object.
|
void |
setSummary(java.lang.String summary)
Sets the summary of this result.
|
getTestFailures
getTestInfo, toString
public SimpleTestSuiteResult(TestInfo info)
SimpleTestSuiteResult
with the suite information.info
- the suite informationjava.lang.IllegalArgumentException
- if the suite information is nullpublic SimpleTestSuiteResult(java.lang.String suiteName, java.lang.String suiteDesc)
SimpleTestSuiteResult
with the suite name and
description.suiteName
- the suite namesuiteDesc
- the suite descriptionjava.lang.IllegalArgumentException
- if the suite name is nullpublic void setSummary(java.lang.String summary)
summary
- the summary of this resultpublic java.lang.String getSummary()
TestResult
getSummary
in class TestSuiteResult
public void add(TestResult testResult, TestResult... testResults)
testResult
- the first test result to addtestResults
- other test resultspublic void addAll(java.util.Collection<TestResult> testResults)
testResults
- the collection of test resultsjava.lang.IllegalArgumentException
- if the collection is nullpublic boolean remove(TestResult result)
TestSuiteResult
children.result
- the test result to be removedtrue
if the test result was removedpublic java.util.Iterator<TestResult> iterator()