Class TestMethod

java.lang.Object
org.apache.maven.surefire.junitcore.TestMethod
All Implemented Interfaces:
TestOutputReceiver<TestOutputReportEntry>

@Deprecated class TestMethod extends Object implements TestOutputReceiver<TestOutputReportEntry>
Deprecated.
Represents the test-state of a single test method that is run.
Notes about thread safety: This instance is serially confined to 1-3 threads (construction, test-run, reporting), without any actual parallel access
  • Field Details

    • TEST_METHOD

      private static final InheritableThreadLocal<TestMethod> TEST_METHOD
      Deprecated.
    • output

      private final AtomicReference<LogicalStream> output
      Deprecated.
    • description

      private final ReportEntry description
      Deprecated.
    • testSet

      private final TestSet testSet
      Deprecated.
    • startTime

      private final long startTime
      Deprecated.
    • endTime

      private volatile long endTime
      Deprecated.
    • testFailure

      private volatile ReportEntry testFailure
      Deprecated.
    • testError

      private volatile ReportEntry testError
      Deprecated.
    • testIgnored

      private volatile ReportEntry testIgnored
      Deprecated.
    • testAssumption

      private volatile ReportEntry testAssumption
      Deprecated.
  • Constructor Details

  • Method Details

    • testFinished

      void testFinished()
      Deprecated.
    • testIgnored

      void testIgnored(ReportEntry description)
      Deprecated.
    • testFailure

      void testFailure(ReportEntry failure)
      Deprecated.
    • testError

      void testError(ReportEntry failure)
      Deprecated.
    • testAssumption

      void testAssumption(ReportEntry failure)
      Deprecated.
    • setEndTime

      private void setEndTime()
      Deprecated.
    • getElapsed

      int getElapsed()
      Deprecated.
    • getStartTime

      long getStartTime()
      Deprecated.
    • getEndTime

      long getEndTime()
      Deprecated.
    • replay

      void replay(TestReportListener<TestOutputReportEntry> reporter)
      Deprecated.
    • createReportEntry

      private ReportEntry createReportEntry(ReportEntry reportEntry)
      Deprecated.
    • attachToThread

      void attachToThread()
      Deprecated.
    • detachFromCurrentThread

      void detachFromCurrentThread()
      Deprecated.
    • getThreadTestMethod

      static TestMethod getThreadTestMethod()
      Deprecated.
    • getLogicalStream

      LogicalStream getLogicalStream()
      Deprecated.
    • writeTestOutput

      public void writeTestOutput(TestOutputReportEntry reportEntry)
      Deprecated.
      Description copied from interface: TestOutputReceiver
      Forwards process output from the running test-case into the reporting system
      Specified by:
      writeTestOutput in interface TestOutputReceiver<TestOutputReportEntry>
      Parameters:
      reportEntry - wraps test output with descriptive information of the output
    • getTestSet

      TestSet getTestSet()
      Deprecated.