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.Descriptiondescriptionprivate java.util.List<IEvent>eventStreamprivate java.util.List<FailureMirror>failuresprivate booleanhasErrorsprivate booleanhasFailuresprivate booleanhasIgnoredAssumptionsprivate java.lang.StringignoreCauseIfstatusisTestStatus.IGNOREDthen this contains the cause.private ForkedJvmInfoslaveprivate TestStatusstatusprivate org.junit.runner.Descriptionsuiteprivate TestFinishedEventtestFinishedEventAssociatedTestFinishedEvent.
-
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) voidaddFailure(FailureMirror failure)(package private) voidcomplete(TestFinishedEvent e, java.util.List<IEvent> eventStream)java.lang.StringgetCauseForIgnored()org.junit.runner.DescriptiongetDescription()java.util.List<IEvent>getEventStream()RawIEventstream received during the duration of this test.longgetExecutionTime()Execution time in millis.java.util.List<FailureMirror>getFailures()ForkedJvmInfogetSlave()longgetStartTimestamp()Execution start timestamp (on the slave).TestStatusgetStatus()Exit status for this test.org.junit.runner.DescriptiongetSuiteDescription()TestFinishedEventgetTestFinishedEvent()This isn't a nice hack but it allows associatingTestFinishedEventandAggregatedTestResultEventby identity.booleanisSuccessful()(package private) voidsetIgnored(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
IfstatusisTestStatus.IGNOREDthen 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:
getDescriptionin interfaceAggregatedResultEvent
-
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessfulin interfaceAggregatedResultEvent
-
getSuiteDescription
public org.junit.runner.Description getSuiteDescription()
-
getSlave
public ForkedJvmInfo getSlave()
- Specified by:
getSlavein interfaceAggregatedResultEvent
-
getFailures
public java.util.List<FailureMirror> 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
public java.util.List<IEvent> getEventStream()
RawIEventstream received during the duration of this test.- Specified by:
getEventStreamin 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 associatingTestFinishedEventandAggregatedTestResultEventby identity. =
-
-