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 ReportEntryDeprecated.private longDeprecated.private final AtomicReference<LogicalStream> Deprecated.private final longDeprecated.private static final InheritableThreadLocal<TestMethod> Deprecated.private ReportEntryDeprecated.private ReportEntryDeprecated.private ReportEntryDeprecated.private ReportEntryDeprecated.private final TestSetDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidDeprecated.private ReportEntrycreateReportEntry(ReportEntry reportEntry) Deprecated.(package private) voidDeprecated.(package private) intDeprecated.(package private) longDeprecated.(package private) LogicalStreamDeprecated.(package private) longDeprecated.(package private) TestSetDeprecated.(package private) static TestMethodDeprecated.(package private) voidreplay(TestReportListener<TestOutputReportEntry> reporter) Deprecated.private voidDeprecated.(package private) voidtestAssumption(ReportEntry failure) Deprecated.(package private) voidtestError(ReportEntry failure) Deprecated.(package private) voidtestFailure(ReportEntry failure) Deprecated.(package private) voidDeprecated.(package private) voidtestIgnored(ReportEntry description) Deprecated.voidwriteTestOutput(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: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.
-