Class AbstractPowerMockTestListenerBase

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterTestMethod​(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments, TestMethodResult testResult)
      Provides an empty implementation.
      void afterTestSuiteEnded​(java.lang.Class<?> testClass, java.lang.reflect.Method[] methods, TestSuiteResult testResult)
      Provides an empty implementation.
      void beforeTestMethod​(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments)
      Provides an empty implementation.
      void beforeTestSuiteStarted​(java.lang.Class<?> testClass, java.lang.reflect.Method[] testMethods)
      Provides an empty implementation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractPowerMockTestListenerBase

        public AbstractPowerMockTestListenerBase()
    • Method Detail

      • afterTestMethod

        public void afterTestMethod​(java.lang.Object testInstance,
                                    java.lang.reflect.Method method,
                                    java.lang.Object[] arguments,
                                    TestMethodResult testResult)
                             throws java.lang.Exception
        Provides an empty implementation.
        Specified by:
        afterTestMethod in interface PowerMockTestListener
        method - The test method that is currently executed.
        arguments - The arguments passed to the test method if any. May be an empty array but never null.
        testResult - The outcome of the test method.
        Throws:
        java.lang.Exception - If something unexpected occurs.
      • beforeTestMethod

        public void beforeTestMethod​(java.lang.Object testInstance,
                                     java.lang.reflect.Method method,
                                     java.lang.Object[] arguments)
                              throws java.lang.Exception
        Provides an empty implementation.
        Specified by:
        beforeTestMethod in interface PowerMockTestListener
        Parameters:
        testInstance - The test case instance.
        method - The test method that is currently executed.
        arguments - The arguments passed to the test method if any. May be an empty array but never null.
        Throws:
        java.lang.Exception - If something unexpected occurs.
      • beforeTestSuiteStarted

        public void beforeTestSuiteStarted​(java.lang.Class<?> testClass,
                                           java.lang.reflect.Method[] testMethods)
                                    throws java.lang.Exception
        Provides an empty implementation.
        Specified by:
        beforeTestSuiteStarted in interface PowerMockTestListener
        Parameters:
        testClass - The type of the test to be executed.
        testMethods - The test methods that will be executed during the test.
        Throws:
        java.lang.Exception - If something unexpected occurs.
      • afterTestSuiteEnded

        public void afterTestSuiteEnded​(java.lang.Class<?> testClass,
                                        java.lang.reflect.Method[] methods,
                                        TestSuiteResult testResult)
                                 throws java.lang.Exception
        Provides an empty implementation.
        Specified by:
        afterTestSuiteEnded in interface PowerMockTestListener
        Parameters:
        testClass - The type of the test to be executed.
        methods - The test methods that were executed during the test.
        testResult - The outcome of the test suite.
        Throws:
        java.lang.Exception - If something unexpected occurs.