Class AggregatedSuiteResultEvent
java.lang.Object
com.carrotsearch.ant.tasks.junit4.events.aggregated.AggregatedSuiteResultEvent
- All Implemented Interfaces:
AggregatedResultEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.junit.runner.Description
private final long
private final ForkedJvmInfo
private final AggregatedSuiteStartedEvent
private final long
private final List
<FailureMirror> private final List
<AggregatedTestResultEvent> -
Constructor Summary
ConstructorsConstructorDescriptionAggregatedSuiteResultEvent
(AggregatedSuiteStartedEvent startEvent, ForkedJvmInfo id, org.junit.runner.Description description, List<FailureMirror> suiteFailures, List<AggregatedTestResultEvent> tests, List<IEvent> eventStream, long startTimestamp, long executionTime) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
flush
(EventType evt, JsonWriter w, WriterOutputStream wos, StringWriter out) void
flushBoth
(JsonWriter w, StringWriter out, StringWriter err, WriterOutputStream stdout, WriterOutputStream stderr) org.junit.runner.Description
int
The number of tests that haveTestStatus.ERROR
and include the suite-level errors.long
Execution time in milliseconds.int
The number of tests that haveTestStatus.FAILURE
and include assertion violations at suite level.int
Return the number of ignored or assumption-ignored tests.getSlave()
long
Execution start timestamp (on the slave).getTests()
boolean
void
serialize
(JsonWriter w, boolean outputStreams) private void
serialize
(JsonWriter w, FailureMirror e) private void
private void
serializeEvents
(JsonWriter w, boolean outputStreams)
-
Field Details
-
slave
-
executionTime
private final long executionTime -
startTimestamp
private final long startTimestamp -
description
private final org.junit.runner.Description description -
tests
-
suiteFailures
-
eventStream
-
startEvent
-
-
Constructor Details
-
AggregatedSuiteResultEvent
public AggregatedSuiteResultEvent(AggregatedSuiteStartedEvent startEvent, ForkedJvmInfo id, org.junit.runner.Description description, List<FailureMirror> suiteFailures, List<AggregatedTestResultEvent> tests, List<IEvent> eventStream, long startTimestamp, long executionTime)
-
-
Method Details
-
getStartEvent
-
getTests
-
getFailures
- Specified by:
getFailures
in interfaceAggregatedResultEvent
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessful
in interfaceAggregatedResultEvent
-
getEventStream
- Specified by:
getEventStream
in interfaceAggregatedResultEvent
-
getSlave
- Specified by:
getSlave
in interfaceAggregatedResultEvent
-
getDescription
public org.junit.runner.Description getDescription()- Specified by:
getDescription
in interfaceAggregatedResultEvent
-
getExecutionTime
public long getExecutionTime()Execution time in milliseconds.- Specified by:
getExecutionTime
in interfaceAggregatedResultEvent
-
getStartTimestamp
public long getStartTimestamp()Execution start timestamp (on the slave).- Specified by:
getStartTimestamp
in interfaceAggregatedResultEvent
-
getFailureCount
public int getFailureCount()The number of tests that haveTestStatus.FAILURE
and include assertion violations at suite level. -
getErrorCount
public int getErrorCount()The number of tests that haveTestStatus.ERROR
and include the suite-level errors. -
getIgnoredCount
public int getIgnoredCount()Return the number of ignored or assumption-ignored tests. -
serialize
- Throws:
IOException
-
serialize
private void serialize(JsonWriter w, SimpleDateFormat sdf, AggregatedTestResultEvent e) throws IOException - Throws:
IOException
-
serialize
- Throws:
IOException
-
serializeEvents
- Throws:
IOException
-
flushBoth
public void flushBoth(JsonWriter w, StringWriter out, StringWriter err, WriterOutputStream stdout, WriterOutputStream stderr) throws IOException - Throws:
IOException
-
flush
private void flush(EventType evt, JsonWriter w, WriterOutputStream wos, StringWriter out) throws IOException - Throws:
IOException
-