Class AggregatedTestResultEvent
java.lang.Object
com.carrotsearch.ant.tasks.junit4.events.aggregated.AggregatedTestResultEvent
- All Implemented Interfaces:
AggregatedResultEvent
A single test's execution information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.junit.runner.Descriptionprivate List<FailureMirror> private booleanprivate booleanprivate booleanprivate StringIfstatusisTestStatus.IGNOREDthen this contains the cause.private final ForkedJvmInfoprivate TestStatusprivate final org.junit.runner.Descriptionprivate TestFinishedEventAssociatedTestFinishedEvent. -
Constructor Summary
ConstructorsConstructorDescriptionAggregatedTestResultEvent(ForkedJvmInfo slave, org.junit.runner.Description suiteDescription, org.junit.runner.Description description) -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddFailure(FailureMirror failure) (package private) voidcomplete(TestFinishedEvent e, List<IEvent> eventStream) org.junit.runner.DescriptionRawIEventstream received during the duration of this test.longExecution time in millis.getSlave()longExecution start timestamp (on the slave).Exit status for this test.org.junit.runner.DescriptionThis isn't a nice hack but it allows associatingTestFinishedEventandAggregatedTestResultEventby identity.boolean(package private) voidsetIgnored(String cause)
-
Field Details
-
suite
private final org.junit.runner.Description suite -
description
private final org.junit.runner.Description description -
slave
-
status
-
failures
-
eventStream
-
hasFailures
private boolean hasFailures -
hasErrors
private boolean hasErrors -
hasIgnoredAssumptions
private boolean hasIgnoredAssumptions -
ignoreCause
IfstatusisTestStatus.IGNOREDthen this contains the cause. -
testFinishedEvent
AssociatedTestFinishedEvent.
-
-
Constructor Details
-
AggregatedTestResultEvent
public AggregatedTestResultEvent(ForkedJvmInfo slave, org.junit.runner.Description suiteDescription, org.junit.runner.Description description)
-
-
Method Details
-
getDescription
public org.junit.runner.Description getDescription()- Specified by:
getDescriptionin interfaceAggregatedResultEvent
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessfulin interfaceAggregatedResultEvent
-
getSuiteDescription
public org.junit.runner.Description getSuiteDescription() -
getSlave
- Specified by:
getSlavein interfaceAggregatedResultEvent
-
getFailures
- Specified by:
getFailuresin interfaceAggregatedResultEvent
-
getExecutionTime
public long getExecutionTime()Execution time in millis.- Specified by:
getExecutionTimein interfaceAggregatedResultEvent
-
getStartTimestamp
public long getStartTimestamp()Execution start timestamp (on the slave).- Specified by:
getStartTimestampin interfaceAggregatedResultEvent
-
getEventStream
RawIEventstream received during the duration of this test.- Specified by:
getEventStreamin interfaceAggregatedResultEvent
-
getStatus
Exit status for this test. -
getCauseForIgnored
-
setIgnored
-
addFailure
-
complete
-
getTestFinishedEvent
This isn't a nice hack but it allows associatingTestFinishedEventandAggregatedTestResultEventby identity. =
-