Class NoOpDDTest

java.lang.Object
datadog.trace.api.civisibility.noop.NoOpDDTest
All Implemented Interfaces:
DDTest

public class NoOpDDTest extends Object implements DDTest
  • Constructor Details

    • NoOpDDTest

      public NoOpDDTest()
  • Method Details

    • setTag

      public void setTag(String key, Object value)
      Description copied from interface: DDTest
      Adds an arbitrary tag to the test
      Specified by:
      setTag in interface DDTest
      Parameters:
      key - The name of the tag
      value - The value of the tag
    • setErrorInfo

      public void setErrorInfo(@Nullable Throwable error)
      Description copied from interface: DDTest
      Marks 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:
      setErrorInfo in interface DDTest
      Parameters:
      error - Optional exception that caused the test to fail
    • setSkipReason

      public void setSkipReason(@Nullable String skipReason)
      Description copied from interface: DDTest
      Marks 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:
      setSkipReason in interface DDTest
      Parameters:
      skipReason - Optional reason for skipping the test
    • end

      public void end(@Nullable Long endTime)
      Description copied from interface: DDTest
      Marks the end of test execution.

      Unless either DDTest.setErrorInfo(Throwable) or DDTest.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.

      Specified by:
      end in interface DDTest
      Parameters:
      endTime - Optional finish time in microseconds. If null is supplied, current time will be assumed