Class TestMethod
- java.lang.Object
-
- org.apache.maven.surefire.junitcore.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 Summary
Fields Modifier and Type Field Description private ReportEntrydescriptionDeprecated.private longendTimeDeprecated.private java.util.concurrent.atomic.AtomicReference<LogicalStream>outputDeprecated.private longstartTimeDeprecated.private static java.lang.InheritableThreadLocal<TestMethod>TEST_METHODDeprecated.private ReportEntrytestAssumptionDeprecated.private ReportEntrytestErrorDeprecated.private ReportEntrytestFailureDeprecated.private ReportEntrytestIgnoredDeprecated.private TestSettestSetDeprecated.
-
Constructor Summary
Constructors Constructor Description TestMethod(ReportEntry description, TestSet testSet)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) voidattachToThread()Deprecated.private ReportEntrycreateReportEntry(ReportEntry reportEntry)Deprecated.(package private) voiddetachFromCurrentThread()Deprecated.(package private) intgetElapsed()Deprecated.(package private) longgetEndTime()Deprecated.(package private) LogicalStreamgetLogicalStream()Deprecated.(package private) longgetStartTime()Deprecated.(package private) TestSetgetTestSet()Deprecated.(package private) static TestMethodgetThreadTestMethod()Deprecated.(package private) voidreplay(TestReportListener<TestOutputReportEntry> reporter)Deprecated.private voidsetEndTime()Deprecated.(package private) voidtestAssumption(ReportEntry failure)Deprecated.(package private) voidtestError(ReportEntry failure)Deprecated.(package private) voidtestFailure(ReportEntry failure)Deprecated.(package private) voidtestFinished()Deprecated.(package private) voidtestIgnored(ReportEntry description)Deprecated.voidwriteTestOutput(TestOutputReportEntry reportEntry)Deprecated.Forwards process output from the running test-case into the reporting system
-
-
-
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
-
TestMethod
TestMethod(ReportEntry description, TestSet testSet)
Deprecated.
-
-
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.
-
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:TestOutputReceiverForwards process output from the running test-case into the reporting system- Specified by:
writeTestOutputin interfaceTestOutputReceiver<TestOutputReportEntry>- Parameters:
reportEntry- wraps test output with descriptive information of the output
-
getTestSet
TestSet getTestSet()
Deprecated.
-
-