public class NoOpDDTestModule extends Object implements DDTestModule
| Constructor and Description |
|---|
NoOpDDTestModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
end(Long endTime)
Marks the end of module execution.
|
void |
setErrorInfo(Throwable error)
Marks the module as failed.
|
void |
setSkipReason(String skipReason)
Marks the module as skipped.
|
void |
setTag(String key,
Object value)
Adds an arbitrary tag to the module
|
DDTestSuite |
testSuiteStart(String testSuiteName,
Class<?> testClass,
Long startTime,
boolean parallelized)
Marks the start of a new test suite in the module.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittestSuiteStartpublic void setTag(String key, Object value)
DDTestModulesetTag in interface DDTestModulekey - The name of the tagvalue - The value of the tagpublic void setErrorInfo(Throwable error)
DDTestModuleThis method should be used to signal a failure that is not related to a specific suite or a test case, but rather to the module as a whole (e.g. a failure in a setup/teardown logic that is executed once per module). If an individual test suite the module fails, there is no need to explicitly signal it to the module object: the status of the module will reflect individual suite failures automatically.
This does not imply the end of module execution, so DDTestModule.end(Long) method has to be
invoked at some point after this one.
setErrorInfo in interface DDTestModuleerror - Optional exception that caused the module to failpublic void setSkipReason(String skipReason)
DDTestModuleThis does not imply the end of module execution, so DDTestModule.end(Long) method has to be
invoked at some point after this one.
setSkipReason in interface DDTestModuleskipReason - Optional reason for skipping the modulepublic void end(@Nullable Long endTime)
DDTestModuleUnless either DDTestModule.setErrorInfo(Throwable) or DDTestModule.setSkipReason(String) were
invoked prior to calling this method, the status of the module will be calculated based on the
statuses of individual test suites that were executed in scope of the module.
The method must be called once for each module instance.
The call does not have to be made in the same thread where the module was started.
end in interface DDTestModuleendTime - Optional finish time in microseconds. If null is supplied, current time
will be assumedpublic DDTestSuite testSuiteStart(String testSuiteName, @Nullable Class<?> testClass, @Nullable Long startTime, boolean parallelized)
DDTestModuletestSuiteStart in interface DDTestModuletestSuiteName - The name of the suitetestClass - Optional class that corresponds to the test suite.startTime - Optional start time in microseconds. If null is supplied, current time
will be assumedparallelized - Whether test cases from this suite will be executed concurrently in
multiple threads