Class NoOpDDTest
java.lang.Object
datadog.trace.api.civisibility.noop.NoOpDDTest
- All Implemented Interfaces:
DDTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks the end of test execution.voidsetErrorInfo(Throwable error) Marks the test as failed.voidsetSkipReason(String skipReason) Marks the test as skipped.voidAdds an arbitrary tag to the test
-
Constructor Details
-
NoOpDDTest
public NoOpDDTest()
-
-
Method Details
-
setTag
Description copied from interface:DDTestAdds an arbitrary tag to the test -
setErrorInfo
Description copied from interface:DDTestMarks the test as failed.This does not imply the end of test execution, so
DDTest.end(Long)method has to be invoked at some point after this one.- Specified by:
setErrorInfoin interfaceDDTest- Parameters:
error- Optional exception that caused the test to fail
-
setSkipReason
Description copied from interface:DDTestMarks the test as skipped.This does not imply the end of test execution, so
DDTest.end(Long)method has to be invoked at some point after this one.- Specified by:
setSkipReasonin interfaceDDTest- Parameters:
skipReason- Optional reason for skipping the test
-
end
Description copied from interface:DDTestMarks the end of test execution.Unless either
DDTest.setErrorInfo(Throwable)orDDTest.setSkipReason(String)were invoked prior to calling this method, the test is assumed to have finished successfully.The method must be called once for each test instance.
The call has to be made in the same thread where the test was started.
-