Class TestMethod
java.lang.Object
org.apache.maven.surefire.junitcore.TestMethod
- All Implemented Interfaces:
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
Notes about thread safety: This instance is serially confined to 1-3 threads (construction, test-run, reporting), without any actual parallel access
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReportEntry
Deprecated.private long
Deprecated.private final AtomicReference<LogicalStream>
Deprecated.private final long
Deprecated.private static final InheritableThreadLocal<TestMethod>
Deprecated.private ReportEntry
Deprecated.private ReportEntry
Deprecated.private ReportEntry
Deprecated.private ReportEntry
Deprecated.private final TestSet
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Deprecated.private ReportEntry
createReportEntry
(ReportEntry reportEntry) Deprecated.(package private) void
Deprecated.(package private) int
Deprecated.(package private) long
Deprecated.(package private) LogicalStream
Deprecated.(package private) long
Deprecated.(package private) TestSet
Deprecated.(package private) static TestMethod
Deprecated.(package private) void
replay
(TestReportListener<TestOutputReportEntry> reporter) Deprecated.private void
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
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 Details
-
TEST_METHOD
Deprecated. -
output
Deprecated. -
description
Deprecated. -
testSet
Deprecated. -
startTime
private final long startTimeDeprecated. -
endTime
private volatile long endTimeDeprecated. -
testFailure
Deprecated. -
testError
Deprecated. -
testIgnored
Deprecated. -
testAssumption
Deprecated.
-
-
Constructor Details
-
TestMethod
TestMethod(ReportEntry description, TestSet testSet) Deprecated.
-
-
Method Details
-
testFinished
void testFinished()Deprecated. -
testIgnored
Deprecated. -
testFailure
Deprecated. -
testError
Deprecated. -
testAssumption
Deprecated. -
setEndTime
private void setEndTime()Deprecated. -
getElapsed
int getElapsed()Deprecated. -
getStartTime
long getStartTime()Deprecated. -
getEndTime
long getEndTime()Deprecated. -
replay
Deprecated. -
createReportEntry
Deprecated. -
attachToThread
void attachToThread()Deprecated. -
detachFromCurrentThread
void detachFromCurrentThread()Deprecated. -
getThreadTestMethod
Deprecated. -
getLogicalStream
LogicalStream getLogicalStream()Deprecated. -
writeTestOutput
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.
-