Class TestMethod

  • All Implemented Interfaces:
    TestOutputReceiver<TestOutputReportEntry>

    @Deprecated
    class TestMethod
    extends java.lang.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 Detail

      • TEST_METHOD

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

        private final java.util.concurrent.atomic.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 Detail

    • Method Detail

      • 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.
      • attachToThread

        void attachToThread()
        Deprecated.
      • detachFromCurrentThread

        void detachFromCurrentThread()
        Deprecated.
      • getThreadTestMethod

        static TestMethod getThreadTestMethod()
        Deprecated.
      • getTestSet

        TestSet getTestSet()
        Deprecated.