@Test public void verifyBackendRunNotifierIsProperlyNotified() throws Exception { Object[] testData = retrieveSuitableTestData(); RunNotifier backendRunNotifierMock = createMock(RunNotifier.class); method.invoke(backendRunNotifierMock, testData); replay(backendRunNotifierMock); method.invoke(new PowerMockRunNotifier( backendRunNotifierMock, EasyMock.<PowerMockTestNotifier, PowerMockTestNotifier>createNiceMock(PowerMockTestNotifier.class), new Method[0]), testData); verify(backendRunNotifierMock); }
private void invoke(String methodName, Object... args) { try { invokeMethod(junitRunNotifier, methodName, args); } catch (Exception ex) { throw new RuntimeException(ex); } }
PowerMockRunNotifier extends RunNotifier implements GlobalNotificationBuildSupport.Callback { private void invoke(String methodName, Object... args) { try { invokeMethod(junitRunNotifier, methodName, args); } catch (Exception ex) { throw new RuntimeException(ex); } } }
PowerMockRunNotifier extends RunNotifier implements GlobalNotificationBuildSupport.Callback { private void invoke(String methodName, Object... args) { try { invokeMethod(junitRunNotifier, methodName, args); } catch (Exception ex) { throw new RuntimeException(ex); } } PowerMockRunNotifier(
            RunNotifier junitRunNotifier,
            PowerMockTestNotifier powerMockTestNotifier,
            Method[] testMethods); }
PowerMockRunNotifier extends RunNotifier implements GlobalNotificationBuildSupport.Callback { private void invoke(String methodName, Object... args) { try { invokeMethod(junitRunNotifier, methodName, args); } catch (Exception ex) { throw new RuntimeException(ex); } } PowerMockRunNotifier(
            RunNotifier junitRunNotifier,
            PowerMockTestNotifier powerMockTestNotifier,
            Method[] testMethods); @Override void suiteClassInitiated(Class<?> testClass); @Override void testInstanceCreated(Object testInstance); @Override void addListener(RunListener listener); @Override void removeListener(RunListener listener); @Override void fireTestRunStarted(Description description); @Override void fireTestRunFinished(Result result); @Override void fireTestStarted(Description description); @Override void fireTestFailure(Failure failure); @Override void fireTestAssumptionFailed(Failure failure); @Override void fireTestIgnored(Description description); @Override void fireTestFinished(Description description); @Override void pleaseStop(); @Override void addFirstListener(RunListener listener); }
PowerMockRunNotifier extends RunNotifier implements GlobalNotificationBuildSupport.Callback { private void invoke(String methodName, Object... args) { try { invokeMethod(junitRunNotifier, methodName, args); } catch (Exception ex) { throw new RuntimeException(ex); } } PowerMockRunNotifier(
            RunNotifier junitRunNotifier,
            PowerMockTestNotifier powerMockTestNotifier,
            Method[] testMethods); @Override void suiteClassInitiated(Class<?> testClass); @Override void testInstanceCreated(Object testInstance); @Override void addListener(RunListener listener); @Override void removeListener(RunListener listener); @Override void fireTestRunStarted(Description description); @Override void fireTestRunFinished(Result result); @Override void fireTestStarted(Description description); @Override void fireTestFailure(Failure failure); @Override void fireTestAssumptionFailed(Failure failure); @Override void fireTestIgnored(Description description); @Override void fireTestFinished(Description description); @Override void pleaseStop(); @Override void addFirstListener(RunListener listener);  }