com.carrotsearch.ant.tasks.junit4.events.aggregated
Class AggregatedTestResultEvent

java.lang.Object
  extended by com.carrotsearch.ant.tasks.junit4.events.aggregated.AggregatedTestResultEvent
All Implemented Interfaces:
AggregatedResultEvent

public class AggregatedTestResultEvent
extends Object
implements AggregatedResultEvent

A single test's execution information.


Constructor Summary
AggregatedTestResultEvent(SlaveInfo slave, Description suiteDescription, Description description)
           
 
Method Summary
 String getCauseForIgnored()
           
 Description getDescription()
           
 List<IEvent> getEventStream()
          Raw IEvent stream received during the duration of this test.
 long getExecutionTime()
          Execution time in millis.
 List<FailureMirror> getFailures()
           
 SlaveInfo getSlave()
           
 long getStartTimestamp()
          Execution start timestamp (on the slave).
 TestStatus getStatus()
          Exit status for this test.
 Description getSuiteDescription()
           
 TestFinishedEvent getTestFinishedEvent()
          This isn't a nice hack but it allows associating TestFinishedEvent and AggregatedTestResultEvent by identity.
 boolean isSuccessful()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatedTestResultEvent

public AggregatedTestResultEvent(SlaveInfo slave,
                                 Description suiteDescription,
                                 Description description)
Method Detail

getDescription

public Description getDescription()
Specified by:
getDescription in interface AggregatedResultEvent

isSuccessful

public boolean isSuccessful()
Specified by:
isSuccessful in interface AggregatedResultEvent

getSuiteDescription

public Description getSuiteDescription()

getSlave

public SlaveInfo getSlave()
Specified by:
getSlave in interface AggregatedResultEvent

getFailures

public List<FailureMirror> getFailures()
Specified by:
getFailures in interface AggregatedResultEvent

getExecutionTime

public long getExecutionTime()
Execution time in millis.

Specified by:
getExecutionTime in interface AggregatedResultEvent

getStartTimestamp

public long getStartTimestamp()
Execution start timestamp (on the slave).

Specified by:
getStartTimestamp in interface AggregatedResultEvent

getEventStream

public List<IEvent> getEventStream()
Raw IEvent stream received during the duration of this test.

Specified by:
getEventStream in interface AggregatedResultEvent

getStatus

public TestStatus getStatus()
Exit status for this test.


getCauseForIgnored

public String getCauseForIgnored()

getTestFinishedEvent

public TestFinishedEvent getTestFinishedEvent()
This isn't a nice hack but it allows associating TestFinishedEvent and AggregatedTestResultEvent by identity. =



Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.