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.Description
private List
<FailureMirror> private boolean
private boolean
private boolean
private String
Ifstatus
isTestStatus.IGNORED
then this contains the cause.private final ForkedJvmInfo
private TestStatus
private final org.junit.runner.Description
private TestFinishedEvent
AssociatedTestFinishedEvent
. -
Constructor Summary
ConstructorsConstructorDescriptionAggregatedTestResultEvent
(ForkedJvmInfo slave, org.junit.runner.Description suiteDescription, org.junit.runner.Description description) -
Method Summary
Modifier and TypeMethodDescription(package private) void
addFailure
(FailureMirror failure) (package private) void
complete
(TestFinishedEvent e, List<IEvent> eventStream) org.junit.runner.Description
RawIEvent
stream received during the duration of this test.long
Execution time in millis.getSlave()
long
Execution start timestamp (on the slave).Exit status for this test.org.junit.runner.Description
This isn't a nice hack but it allows associatingTestFinishedEvent
andAggregatedTestResultEvent
by identity.boolean
(package private) void
setIgnored
(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
Ifstatus
isTestStatus.IGNORED
then 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:
getDescription
in interfaceAggregatedResultEvent
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessful
in interfaceAggregatedResultEvent
-
getSuiteDescription
public org.junit.runner.Description getSuiteDescription() -
getSlave
- Specified by:
getSlave
in interfaceAggregatedResultEvent
-
getFailures
- Specified by:
getFailures
in interfaceAggregatedResultEvent
-
getExecutionTime
public long getExecutionTime()Execution time in millis.- Specified by:
getExecutionTime
in interfaceAggregatedResultEvent
-
getStartTimestamp
public long getStartTimestamp()Execution start timestamp (on the slave).- Specified by:
getStartTimestamp
in interfaceAggregatedResultEvent
-
getEventStream
RawIEvent
stream received during the duration of this test.- Specified by:
getEventStream
in interfaceAggregatedResultEvent
-
getStatus
Exit status for this test. -
getCauseForIgnored
-
setIgnored
-
addFailure
-
complete
-
getTestFinishedEvent
This isn't a nice hack but it allows associatingTestFinishedEvent
andAggregatedTestResultEvent
by identity. =
-