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.Descriptionprivate final longprivate final ForkedJvmInfoprivate final AggregatedSuiteStartedEventprivate final longprivate 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 voidflush(EventType evt, JsonWriter w, WriterOutputStream wos, StringWriter out) voidflushBoth(JsonWriter w, StringWriter out, StringWriter err, WriterOutputStream stdout, WriterOutputStream stderr) org.junit.runner.DescriptionintThe number of tests that haveTestStatus.ERRORand include the suite-level errors.longExecution time in milliseconds.intThe number of tests that haveTestStatus.FAILUREand include assertion violations at suite level.intReturn the number of ignored or assumption-ignored tests.getSlave()longExecution start timestamp (on the slave).getTests()booleanvoidserialize(JsonWriter w, boolean outputStreams) private voidserialize(JsonWriter w, FailureMirror e) private voidprivate voidserializeEvents(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:
getFailuresin interfaceAggregatedResultEvent
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessfulin interfaceAggregatedResultEvent
-
getEventStream
- Specified by:
getEventStreamin interfaceAggregatedResultEvent
-
getSlave
- Specified by:
getSlavein interfaceAggregatedResultEvent
-
getDescription
public org.junit.runner.Description getDescription()- Specified by:
getDescriptionin interfaceAggregatedResultEvent
-
getExecutionTime
public long getExecutionTime()Execution time in milliseconds.- Specified by:
getExecutionTimein interfaceAggregatedResultEvent
-
getStartTimestamp
public long getStartTimestamp()Execution start timestamp (on the slave).- Specified by:
getStartTimestampin interfaceAggregatedResultEvent
-
getFailureCount
public int getFailureCount()The number of tests that haveTestStatus.FAILUREand include assertion violations at suite level. -
getErrorCount
public int getErrorCount()The number of tests that haveTestStatus.ERRORand 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
-