Class AggregatedTestResultEvent
- java.lang.Object
-
- com.carrotsearch.ant.tasks.junit4.events.aggregated.AggregatedTestResultEvent
-
- All Implemented Interfaces:
AggregatedResultEvent
public class AggregatedTestResultEvent extends java.lang.Object implements AggregatedResultEvent
A single test's execution information.
-
-
Field Summary
Fields Modifier and Type Field Description private org.junit.runner.Description
description
private java.util.List<IEvent>
eventStream
private java.util.List<FailureMirror>
failures
private boolean
hasErrors
private boolean
hasFailures
private boolean
hasIgnoredAssumptions
private java.lang.String
ignoreCause
Ifstatus
isTestStatus.IGNORED
then this contains the cause.private ForkedJvmInfo
slave
private TestStatus
status
private org.junit.runner.Description
suite
private TestFinishedEvent
testFinishedEvent
AssociatedTestFinishedEvent
.
-
Constructor Summary
Constructors Constructor Description AggregatedTestResultEvent(ForkedJvmInfo slave, org.junit.runner.Description suiteDescription, org.junit.runner.Description description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addFailure(FailureMirror failure)
(package private) void
complete(TestFinishedEvent e, java.util.List<IEvent> eventStream)
java.lang.String
getCauseForIgnored()
org.junit.runner.Description
getDescription()
java.util.List<IEvent>
getEventStream()
RawIEvent
stream received during the duration of this test.long
getExecutionTime()
Execution time in millis.java.util.List<FailureMirror>
getFailures()
ForkedJvmInfo
getSlave()
long
getStartTimestamp()
Execution start timestamp (on the slave).TestStatus
getStatus()
Exit status for this test.org.junit.runner.Description
getSuiteDescription()
TestFinishedEvent
getTestFinishedEvent()
This isn't a nice hack but it allows associatingTestFinishedEvent
andAggregatedTestResultEvent
by identity.boolean
isSuccessful()
(package private) void
setIgnored(java.lang.String cause)
-
-
-
Field Detail
-
suite
private final org.junit.runner.Description suite
-
description
private final org.junit.runner.Description description
-
slave
private final ForkedJvmInfo slave
-
status
private TestStatus status
-
failures
private java.util.List<FailureMirror> failures
-
eventStream
private java.util.List<IEvent> eventStream
-
hasFailures
private boolean hasFailures
-
hasErrors
private boolean hasErrors
-
hasIgnoredAssumptions
private boolean hasIgnoredAssumptions
-
ignoreCause
private java.lang.String ignoreCause
Ifstatus
isTestStatus.IGNORED
then this contains the cause.
-
testFinishedEvent
private TestFinishedEvent testFinishedEvent
AssociatedTestFinishedEvent
.
-
-
Constructor Detail
-
AggregatedTestResultEvent
public AggregatedTestResultEvent(ForkedJvmInfo slave, org.junit.runner.Description suiteDescription, org.junit.runner.Description description)
-
-
Method Detail
-
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
public ForkedJvmInfo getSlave()
- Specified by:
getSlave
in interfaceAggregatedResultEvent
-
getFailures
public java.util.List<FailureMirror> 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
public java.util.List<IEvent> getEventStream()
RawIEvent
stream received during the duration of this test.- Specified by:
getEventStream
in interfaceAggregatedResultEvent
-
getStatus
public TestStatus getStatus()
Exit status for this test.
-
getCauseForIgnored
public java.lang.String getCauseForIgnored()
-
setIgnored
void setIgnored(java.lang.String cause)
-
addFailure
void addFailure(FailureMirror failure)
-
complete
void complete(TestFinishedEvent e, java.util.List<IEvent> eventStream)
-
getTestFinishedEvent
public TestFinishedEvent getTestFinishedEvent()
This isn't a nice hack but it allows associatingTestFinishedEvent
andAggregatedTestResultEvent
by identity. =
-
-