public class NoOpDDTestSuite extends Object implements DDTestSuite
| Constructor and Description |
|---|
NoOpDDTestSuite() |
| Modifier and Type | Method and Description |
|---|---|
void |
end(Long endTime)
Marks the end of suite execution.
|
void |
setErrorInfo(Throwable error)
Marks the suite as failed.
|
void |
setSkipReason(String skipReason)
Marks the suite as skipped.
|
void |
setTag(String key,
Object value)
Adds an arbitrary tag to the suite
|
DDTest |
testStart(String testName,
Method testMethod,
Long startTime)
Marks the start of a new test case in the suite.
|
public void setTag(String key, Object value)
DDTestSuitesetTag in interface DDTestSuitekey - The name of the tagvalue - The value of the tagpublic void setErrorInfo(Throwable error)
DDTestSuiteThis method should be used to signal a failure that is not related to a specific test case, but rather to the suite as a whole (e.g. a failure in a setup/teardown method whose scope is entire suite). If an individual test case in the suite fails, there is no need to explicitly signal it to the suite object: the status of the suite will reflect individual test case failures automatically.
This does not imply the end of suite execution, so DDTestSuite.end(Long) method has to be
invoked at some point after this one.
setErrorInfo in interface DDTestSuiteerror - Optional exception that caused the suite to failpublic void setSkipReason(String skipReason)
DDTestSuiteThis does not imply the end of suite execution, so DDTestSuite.end(Long) method has to be
invoked at some point after this one.
setSkipReason in interface DDTestSuiteskipReason - Optional reason for skipping the suitepublic void end(@Nullable Long endTime)
DDTestSuiteUnless either DDTestSuite.setErrorInfo(Throwable) or DDTestSuite.setSkipReason(String) were
invoked prior to calling this method, the status of the suite will be calculated based on the
statuses of individual test cases that were executed in scope of the suite.
The method must be called once for each suite instance.
The call has to be made in the same thread where the suite was started.
end in interface DDTestSuiteendTime - Optional finish time in microseconds. If null is supplied, current time
will be assumedpublic DDTest testStart(String testName, @Nullable Method testMethod, @Nullable Long startTime)
DDTestSuitetestStart in interface DDTestSuitetestName - The name of the test casetestMethod - Optional method that corresponds to the test casestartTime - Optional start time in microseconds. If null is supplied, current time
will be assumed