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()
TestExecutionSummarygetTimeStarted in interface TestExecutionSummarypublic long getTimeFinished()
TestExecutionSummarygetTimeFinished in interface TestExecutionSummarypublic long getTotalFailureCount()
TestExecutionSummarygetTotalFailureCount in interface TestExecutionSummaryTestExecutionSummary.getTestsFailedCount(),
TestExecutionSummary.getContainersFailedCount()public long getContainersFoundCount()
TestExecutionSummarygetContainersFoundCount in interface TestExecutionSummarypublic long getContainersStartedCount()
TestExecutionSummarygetContainersStartedCount in interface TestExecutionSummarypublic long getContainersSkippedCount()
TestExecutionSummarygetContainersSkippedCount in interface TestExecutionSummarypublic long getContainersAbortedCount()
TestExecutionSummarygetContainersAbortedCount in interface TestExecutionSummarypublic long getContainersSucceededCount()
TestExecutionSummarygetContainersSucceededCount in interface TestExecutionSummarypublic long getContainersFailedCount()
TestExecutionSummarygetContainersFailedCount in interface TestExecutionSummaryTestExecutionSummary.getTestsFailedCount(),
TestExecutionSummary.getTotalFailureCount()public long getTestsFoundCount()
TestExecutionSummarygetTestsFoundCount in interface TestExecutionSummarypublic long getTestsStartedCount()
TestExecutionSummarygetTestsStartedCount in interface TestExecutionSummarypublic long getTestsSkippedCount()
TestExecutionSummarygetTestsSkippedCount in interface TestExecutionSummarypublic long getTestsAbortedCount()
TestExecutionSummarygetTestsAbortedCount in interface TestExecutionSummarypublic long getTestsSucceededCount()
TestExecutionSummarygetTestsSucceededCount in interface TestExecutionSummarypublic long getTestsFailedCount()
TestExecutionSummarygetTestsFailedCount in interface TestExecutionSummaryTestExecutionSummary.getContainersFailedCount(),
TestExecutionSummary.getTotalFailureCount()public void printTo(java.io.PrintWriter writer)
TestExecutionSummaryPrintWriter.
This method does not print failure messages.
printTo in interface TestExecutionSummaryTestExecutionSummary.printFailuresTo(PrintWriter)public void printFailuresTo(java.io.PrintWriter writer)
TestExecutionSummaryPrintWriter.printFailuresTo in interface TestExecutionSummaryTestExecutionSummary.printTo(PrintWriter)public java.util.List<TestExecutionSummary.Failure> getFailures()
TestExecutionSummarygetFailures in interface TestExecutionSummaryprivate 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)