Class PowerMockTestNotifierImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void notifyAfterTestMethod​(boolean successful)
      Notifies all listeners with the "after test method ended" event.
      void notifyAfterTestMethod​(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments, TestMethodResult testResult)
      Notifies all listeners with the "after test method ended" event.
      void notifyAfterTestSuiteEnded​(java.lang.Class<?> testClass, java.lang.reflect.Method[] methods, TestSuiteResult testResult)
      Notifies all listeners with the "after test suite ended" event.
      void notifyBeforeTestMethod​(java.lang.Object testInstance, java.lang.reflect.Method testMethod, java.lang.Object[] arguments)
      Notifies all listeners with the "before test method started" event.
      void notifyBeforeTestSuiteStarted​(java.lang.Class<?> testClass, java.lang.reflect.Method[] testMethods)
      Notifies all listeners with the "before test suite started" event.
      • Methods inherited from class java.lang.Object

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

      • PowerMockTestNotifierImpl

        public PowerMockTestNotifierImpl​(PowerMockTestListener[] powerMockTestListeners)
        Create a new instance with the following parameters.
        Parameters:
        powerMockTestListeners - The PowerMock listeners that will be notified.
    • Method Detail

      • notifyAfterTestMethod

        public void notifyAfterTestMethod​(java.lang.Object testInstance,
                                          java.lang.reflect.Method method,
                                          java.lang.Object[] arguments,
                                          TestMethodResult testResult)
        Description copied from interface: PowerMockTestNotifier
        Notifies all listeners with the "after test method ended" event.
        Specified by:
        notifyAfterTestMethod in interface PowerMockTestNotifier
        Parameters:
        testInstance - instance of test
        method - test method to be executed
        arguments - arguments of test methods
        testResult - result of running of test
      • notifyAfterTestSuiteEnded

        public void notifyAfterTestSuiteEnded​(java.lang.Class<?> testClass,
                                              java.lang.reflect.Method[] methods,
                                              TestSuiteResult testResult)
        Description copied from interface: PowerMockTestNotifier
        Notifies all listeners with the "after test suite ended" event.
        Specified by:
        notifyAfterTestSuiteEnded in interface PowerMockTestNotifier
        Parameters:
        testClass - class of test suite
        methods - test case methods
        testResult - result of running of test
      • notifyBeforeTestMethod

        public void notifyBeforeTestMethod​(java.lang.Object testInstance,
                                           java.lang.reflect.Method testMethod,
                                           java.lang.Object[] arguments)
        Description copied from interface: PowerMockTestNotifier
        Notifies all listeners with the "before test method started" event.
        Specified by:
        notifyBeforeTestMethod in interface PowerMockTestNotifier
        Parameters:
        testInstance - instance of test
        testMethod - test method to be executed
        arguments - arguments of test methods
      • notifyBeforeTestSuiteStarted

        public void notifyBeforeTestSuiteStarted​(java.lang.Class<?> testClass,
                                                 java.lang.reflect.Method[] testMethods)
        Description copied from interface: PowerMockTestNotifier
        Notifies all listeners with the "before test suite started" event.
        Specified by:
        notifyBeforeTestSuiteStarted in interface PowerMockTestNotifier
        Parameters:
        testClass - class of test suite
        testMethods - test case methods