Class 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 org.junit.runner.notification.RunListener delegate  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void exception​(java.lang.Throwable t)  
      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 Detail

      • delegate

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

      • NoExceptionRunListenerDecorator

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

      • testRunStarted

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

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

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

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

        public final void testFailure​(org.junit.runner.notification.Failure failure)
                               throws java.lang.Exception
        Overrides:
        testFailure in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.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 java.lang.Exception
        Overrides:
        testIgnored in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.Exception
      • exception

        protected abstract void exception​(java.lang.Throwable t)