Class RunListenerEmitter

java.lang.Object
org.junit.runner.notification.RunListener
com.carrotsearch.ant.tasks.junit4.slave.RunListenerEmitter

public class RunListenerEmitter extends org.junit.runner.notification.RunListener
Serialize test execution events. Attempts to handle certain corner cases that are not cleanly handled by JUnit itself (reporting the cause of ignored methods, etc.).
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener

    org.junit.runner.notification.RunListener.ThreadSafe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Serializer
     
    private long
     
    private org.junit.runner.notification.Failure
    A failure signaled at the suite level.
    private org.junit.runner.Description
     
    private long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    testAssumptionFailure(org.junit.runner.notification.Failure failure)
     
    void
    testFailure(org.junit.runner.notification.Failure failure)
     
    void
    testFinished(org.junit.runner.Description description)
     
    void
    testIgnored(org.junit.runner.Description description)
     
    void
    testRunFinished(org.junit.runner.Result result)
     
    void
    testRunStarted(org.junit.runner.Description description)
     
    void
    testStarted(org.junit.runner.Description description)
     

    Methods inherited from class org.junit.runner.notification.RunListener

    testSuiteFinished, testSuiteStarted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serializer

      private final Serializer serializer
    • suiteDescription

      private org.junit.runner.Description suiteDescription
    • start

      private long start
    • suiteStart

      private long suiteStart
    • suiteAssumption

      private org.junit.runner.notification.Failure suiteAssumption
      A failure signaled at the suite level. Most likely will result in ignored methods.
  • Constructor Details

    • RunListenerEmitter

      public RunListenerEmitter(Serializer serializer)
  • Method Details

    • testRunStarted

      public void testRunStarted(org.junit.runner.Description description) throws Exception
      Overrides:
      testRunStarted in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • testStarted

      public void testStarted(org.junit.runner.Description description) throws Exception
      Overrides:
      testStarted in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • testFailure

      public void testFailure(org.junit.runner.notification.Failure failure) throws Exception
      Overrides:
      testFailure in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • testAssumptionFailure

      public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
      Overrides:
      testAssumptionFailure in class org.junit.runner.notification.RunListener
    • testIgnored

      public void testIgnored(org.junit.runner.Description description) throws Exception
      Overrides:
      testIgnored in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • testFinished

      public void testFinished(org.junit.runner.Description description) throws Exception
      Overrides:
      testFinished in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • testRunFinished

      public void testRunFinished(org.junit.runner.Result result) throws Exception
      Overrides:
      testRunFinished in class org.junit.runner.notification.RunListener
      Throws:
      Exception