class MutableTestExecutionSummary extends java.lang.Object implements TestExecutionSummary
TestExecutionSummary
API.Modifier and Type | Class and Description |
---|---|
private static class |
MutableTestExecutionSummary.DefaultFailure |
TestExecutionSummary.Failure
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CAUSED_BY |
private static java.lang.String |
CIRCULAR |
(package private) java.util.concurrent.atomic.AtomicLong |
containersAborted |
(package private) java.util.concurrent.atomic.AtomicLong |
containersFailed |
(package private) java.util.concurrent.atomic.AtomicLong |
containersFound |
(package private) java.util.concurrent.atomic.AtomicLong |
containersSkipped |
(package private) java.util.concurrent.atomic.AtomicLong |
containersStarted |
(package private) java.util.concurrent.atomic.AtomicLong |
containersSucceeded |
private static java.lang.String |
DOUBLE_TAB |
private java.util.List<TestExecutionSummary.Failure> |
failures |
private static int |
MAX_STACKTRACE_LINES |
private static java.lang.String |
SUPPRESSED |
private static java.lang.String |
TAB |
private TestPlan |
testPlan |
(package private) java.util.concurrent.atomic.AtomicLong |
testsAborted |
(package private) java.util.concurrent.atomic.AtomicLong |
testsFailed |
(package private) java.util.concurrent.atomic.AtomicLong |
testsFound |
(package private) java.util.concurrent.atomic.AtomicLong |
testsSkipped |
(package private) java.util.concurrent.atomic.AtomicLong |
testsStarted |
(package private) java.util.concurrent.atomic.AtomicLong |
testsSucceeded |
(package private) long |
timeFinished |
private long |
timeStarted |
Constructor and Description |
---|
MutableTestExecutionSummary(TestPlan testPlan) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addFailure(TestIdentifier testIdentifier,
java.lang.Throwable throwable) |
private void |
collectTestDescription(TestIdentifier identifier,
java.util.List<java.lang.String> descriptionParts) |
private java.lang.String |
describeTest(TestIdentifier testIdentifier) |
long |
getContainersAbortedCount()
Get the number of containers aborted.
|
long |
getContainersFailedCount()
Get the number of containers that failed.
|
long |
getContainersFoundCount()
Get the number of containers found.
|
long |
getContainersSkippedCount()
Get the number of containers skipped.
|
long |
getContainersStartedCount()
Get the number of containers started.
|
long |
getContainersSucceededCount()
Get the number of containers that succeeded.
|
java.util.List<TestExecutionSummary.Failure> |
getFailures()
Get an immutable list of the failures of the test plan execution.
|
long |
getTestsAbortedCount()
Get the number of tests aborted.
|
long |
getTestsFailedCount()
Get the number of tests that failed.
|
long |
getTestsFoundCount()
Get the number of tests found.
|
long |
getTestsSkippedCount()
Get the number of tests skipped.
|
long |
getTestsStartedCount()
Get the number of tests started.
|
long |
getTestsSucceededCount()
Get the number of tests that succeeded.
|
long |
getTimeFinished()
Get the timestamp (in milliseconds) when the test plan finished.
|
long |
getTimeStarted()
Get the timestamp (in milliseconds) when the test plan started.
|
long |
getTotalFailureCount()
Get the total number of failed
containers and failed tests.
|
private int |
numberOfCommonFrames(java.lang.StackTraceElement[] currentTrace,
java.lang.StackTraceElement[] parentTrace) |
void |
printFailuresTo(java.io.PrintWriter writer)
Print failed containers and tests, including sources and exception
messages, to the supplied
PrintWriter . |
private void |
printSource(java.io.PrintWriter writer,
TestIdentifier testIdentifier) |
private void |
printStackTrace(java.io.PrintWriter writer,
java.lang.StackTraceElement[] parentTrace,
java.lang.Throwable throwable,
java.lang.String caption,
java.lang.String indentation,
java.util.Set<java.lang.Throwable> seenThrowables,
int max) |
private void |
printStackTrace(java.io.PrintWriter writer,
java.lang.Throwable throwable,
int max) |
void |
printTo(java.io.PrintWriter writer)
Print this summary to the supplied
PrintWriter . |
private static final java.lang.String TAB
private static final java.lang.String DOUBLE_TAB
private static final int MAX_STACKTRACE_LINES
private static final java.lang.String CAUSED_BY
private static final java.lang.String SUPPRESSED
private static final java.lang.String CIRCULAR
final java.util.concurrent.atomic.AtomicLong containersFound
final java.util.concurrent.atomic.AtomicLong containersStarted
final java.util.concurrent.atomic.AtomicLong containersSkipped
final java.util.concurrent.atomic.AtomicLong containersAborted
final java.util.concurrent.atomic.AtomicLong containersSucceeded
final java.util.concurrent.atomic.AtomicLong containersFailed
final java.util.concurrent.atomic.AtomicLong testsFound
final java.util.concurrent.atomic.AtomicLong testsStarted
final java.util.concurrent.atomic.AtomicLong testsSkipped
final java.util.concurrent.atomic.AtomicLong testsAborted
final java.util.concurrent.atomic.AtomicLong testsSucceeded
final java.util.concurrent.atomic.AtomicLong testsFailed
private final TestPlan testPlan
private final java.util.List<TestExecutionSummary.Failure> failures
private final long timeStarted
long timeFinished
MutableTestExecutionSummary(TestPlan testPlan)
void addFailure(TestIdentifier testIdentifier, java.lang.Throwable throwable)
public long getTimeStarted()
TestExecutionSummary
getTimeStarted
in interface TestExecutionSummary
public long getTimeFinished()
TestExecutionSummary
getTimeFinished
in interface TestExecutionSummary
public long getTotalFailureCount()
TestExecutionSummary
getTotalFailureCount
in interface TestExecutionSummary
TestExecutionSummary.getTestsFailedCount()
,
TestExecutionSummary.getContainersFailedCount()
public long getContainersFoundCount()
TestExecutionSummary
getContainersFoundCount
in interface TestExecutionSummary
public long getContainersStartedCount()
TestExecutionSummary
getContainersStartedCount
in interface TestExecutionSummary
public long getContainersSkippedCount()
TestExecutionSummary
getContainersSkippedCount
in interface TestExecutionSummary
public long getContainersAbortedCount()
TestExecutionSummary
getContainersAbortedCount
in interface TestExecutionSummary
public long getContainersSucceededCount()
TestExecutionSummary
getContainersSucceededCount
in interface TestExecutionSummary
public long getContainersFailedCount()
TestExecutionSummary
getContainersFailedCount
in interface TestExecutionSummary
TestExecutionSummary.getTestsFailedCount()
,
TestExecutionSummary.getTotalFailureCount()
public long getTestsFoundCount()
TestExecutionSummary
getTestsFoundCount
in interface TestExecutionSummary
public long getTestsStartedCount()
TestExecutionSummary
getTestsStartedCount
in interface TestExecutionSummary
public long getTestsSkippedCount()
TestExecutionSummary
getTestsSkippedCount
in interface TestExecutionSummary
public long getTestsAbortedCount()
TestExecutionSummary
getTestsAbortedCount
in interface TestExecutionSummary
public long getTestsSucceededCount()
TestExecutionSummary
getTestsSucceededCount
in interface TestExecutionSummary
public long getTestsFailedCount()
TestExecutionSummary
getTestsFailedCount
in interface TestExecutionSummary
TestExecutionSummary.getContainersFailedCount()
,
TestExecutionSummary.getTotalFailureCount()
public void printTo(java.io.PrintWriter writer)
TestExecutionSummary
PrintWriter
.
This method does not print failure messages.
printTo
in interface TestExecutionSummary
TestExecutionSummary.printFailuresTo(PrintWriter)
public void printFailuresTo(java.io.PrintWriter writer)
TestExecutionSummary
PrintWriter
.printFailuresTo
in interface TestExecutionSummary
TestExecutionSummary.printTo(PrintWriter)
public java.util.List<TestExecutionSummary.Failure> getFailures()
TestExecutionSummary
getFailures
in interface TestExecutionSummary
private java.lang.String describeTest(TestIdentifier testIdentifier)
private void collectTestDescription(TestIdentifier identifier, java.util.List<java.lang.String> descriptionParts)
private void printSource(java.io.PrintWriter writer, TestIdentifier testIdentifier)
private void printStackTrace(java.io.PrintWriter writer, java.lang.Throwable throwable, int max)
private void printStackTrace(java.io.PrintWriter writer, java.lang.StackTraceElement[] parentTrace, java.lang.Throwable throwable, java.lang.String caption, java.lang.String indentation, java.util.Set<java.lang.Throwable> seenThrowables, int max)
private int numberOfCommonFrames(java.lang.StackTraceElement[] currentTrace, java.lang.StackTraceElement[] parentTrace)