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 ReportEntry
description
Deprecated.private long
endTime
Deprecated.private java.util.concurrent.atomic.AtomicReference<LogicalStream>
output
Deprecated.private long
startTime
Deprecated.private static java.lang.InheritableThreadLocal<TestMethod>
TEST_METHOD
Deprecated.private ReportEntry
testAssumption
Deprecated.private ReportEntry
testError
Deprecated.private ReportEntry
testFailure
Deprecated.private ReportEntry
testIgnored
Deprecated.private TestSet
testSet
Deprecated.
-
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) void
attachToThread()
Deprecated.private ReportEntry
createReportEntry(ReportEntry reportEntry)
Deprecated.(package private) void
detachFromCurrentThread()
Deprecated.(package private) int
getElapsed()
Deprecated.(package private) long
getEndTime()
Deprecated.(package private) LogicalStream
getLogicalStream()
Deprecated.(package private) long
getStartTime()
Deprecated.(package private) TestSet
getTestSet()
Deprecated.(package private) static TestMethod
getThreadTestMethod()
Deprecated.(package private) void
replay(TestReportListener<TestOutputReportEntry> reporter)
Deprecated.private void
setEndTime()
Deprecated.(package private) void
testAssumption(ReportEntry failure)
Deprecated.(package private) void
testError(ReportEntry failure)
Deprecated.(package private) void
testFailure(ReportEntry failure)
Deprecated.(package private) void
testFinished()
Deprecated.(package private) void
testIgnored(ReportEntry description)
Deprecated.void
writeTestOutput(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:TestOutputReceiver
Forwards process output from the running test-case into the reporting system- Specified by:
writeTestOutput
in interfaceTestOutputReceiver<TestOutputReportEntry>
- Parameters:
reportEntry
- wraps test output with descriptive information of the output
-
getTestSet
TestSet getTestSet()
Deprecated.
-
-