Class NoExceptionRunListenerDecorator

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

public abstract class NoExceptionRunListenerDecorator extends org.junit.runner.notification.RunListener
RunListener decorator that does something before and after a given method call. A fancier impl. could use a Proxy but RunListener is not an interface.
  • 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 org.junit.runner.notification.RunListener
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NoExceptionRunListenerDecorator(org.junit.runner.notification.RunListener delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
    final void
    testAssumptionFailure(org.junit.runner.notification.Failure failure)
     
    final void
    testFailure(org.junit.runner.notification.Failure failure)
     
    final void
    testFinished(org.junit.runner.Description description)
     
    final void
    testIgnored(org.junit.runner.Description description)
     
    final void
    testRunFinished(org.junit.runner.Result result)
     
    final void
    testRunStarted(org.junit.runner.Description description)
     
    final 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

    • delegate

      private final org.junit.runner.notification.RunListener delegate
  • Constructor Details

    • NoExceptionRunListenerDecorator

      public NoExceptionRunListenerDecorator(org.junit.runner.notification.RunListener delegate)
  • Method Details

    • testRunStarted

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

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

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

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

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

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

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

      protected abstract void exception(Throwable t)