public void run(final RunNotifier notifier) { runner.run(notifier); }
super.run(notifier);
public void run(final RunNotifier notifier) { // add listener that validates framework usage at the end of each test notifier.addListener(new FrameworkUsageValidator(notifier)); runner.run(notifier); }
/** * Check whether the test is enabled in the current execution environment. * <p>This prevents classes with a non-matching {@code @IfProfileValue} * annotation from running altogether, even skipping the execution of * {@code prepareTestInstance()} methods in {@code TestExecutionListeners}. * @see ProfileValueUtils#isTestEnabledInThisEnvironment(Class) * @see org.springframework.test.annotation.IfProfileValue * @see org.springframework.test.context.TestExecutionListener */ @Override public void run(RunNotifier notifier) { if (!ProfileValueUtils.isTestEnabledInThisEnvironment(getTestClass().getJavaClass())) { notifier.fireTestIgnored(getDescription()); return; } super.run(notifier); }
@Override public void run(final RunNotifier runNotifier) { try { SwingUtilities.invokeAndWait(() -> SwingRunner.super.run(runNotifier)); } catch (InterruptedException | InvocationTargetException e) { e.printStackTrace(); } }
/** * We decorate the super method by reactor setup and teardown. This method is called once per * class. Note that the given reactor strategy decides whether or not the setup and teardown * actually happens at this level. */ @Override public void run(RunNotifier notifier) { LOG.info("running test class {}", getTestClass().getName()); Class<?> testClass = getTestClass().getJavaClass(); try { manager.beforeClass(stagedReactor, testClass); super.run(notifier); } // CHECKSTYLE:SKIP : catch all wanted catch (Throwable e) { // rethrowing the exception does not help, we have to use the notifier here Description description = Description.createSuiteDescription(testClass); notifier.fireTestFailure(new Failure(description, e)); } finally { manager.afterClass(stagedReactor, testClass); } }
/** * We decorate the super method by reactor setup and teardown. This method is called once per * class. Note that the given reactor strategy decides whether or not the setup and teardown * actually happens at this level. */ @Override public void run(RunNotifier notifier) { LOG.info("running test class {}", getTestClass().getName()); Class<?> testClass = getTestClass().getJavaClass(); try { manager.beforeClass(stagedReactor, testClass); super.run(notifier); } // CHECKSTYLE:SKIP : catch all wanted catch (Throwable e) { // rethrowing the exception does not help, we have to use the notifier here Description description = Description.createSuiteDescription(testClass); notifier.fireTestFailure(new Failure(description, e)); } finally { manager.afterClass(stagedReactor, testClass); } }
/** * We decorate the super method by reactor setup and teardown. This method is called once per * class. Note that the given reactor strategy decides whether or not the setup and teardown * actually happens at this level. */ @Override public void run(RunNotifier notifier) { LOG.info("running test class {}", getTestClass().getName()); Class<?> testClass = getTestClass().getJavaClass(); try { manager.beforeClass(stagedReactor, testClass); super.run(notifier); } // CHECKSTYLE:SKIP : catch all wanted catch (Throwable e) { // rethrowing the exception does not help, we have to use the notifier here Description description = Description.createSuiteDescription(testClass); notifier.fireTestFailure(new Failure(description, e)); } finally { manager.afterClass(stagedReactor, testClass); } }
@Override public void run(RunNotifier runNotifier) { ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(classLoader); delegate.run(runNotifier); } finally { Thread.currentThread().setContextClassLoader(currentClassLoader); } } }
@Override public void run(RunNotifier notifier) { notifier.addListener(JUnitExecutionListener.getRunListener()); super.run(notifier); } }
/** * @see org.junit.runners.ParentRunner#run(org.junit.runner.notification.RunNotifier) */ @Override public void run(final RunNotifier notifier) { // For every run, we need to set up an instance of the apiman engine. setEngine(createEngine()); super.run(notifier); }
@Override public void run(RunNotifier notifier) { // add listener that validates framework usage at the end of each test notifier.addListener(new MockitoUsageValidator(notifier)); super.run(notifier); }
@Override public void run(RunNotifier notifier) { // add listener that validates framework usage at the end of each test notifier.addListener(new MockitoUsageValidator(notifier)); super.run(notifier); }
public void run(final RunNotifier notifier) { // add listener that validates framework usage at the end of each test notifier.addListener(new FrameworkUsageValidator(notifier)); runner.run(notifier); }
@Override public void run(final RunNotifier notifier) { this.osgiListener = new JunitOSGiRunListener(notifier); notifier.addListener(osgiListener); super.run(notifier); }
@Override public void run(final RunNotifier notifier) { notifier.addFirstListener(new OceanListener()); super.run(notifier); }
/** * See JUnit doc if overwriting... * @param notifier */ @Override public void run(final RunNotifier notifier) { Spf4jTestLogRunListenerSingleton listener = Spf4jTestLogRunListenerSingleton.getInstance(); notifier.removeListener(listener); notifier.addListener(listener); super.run(notifier); }
@Override public void run(RunNotifier notifier) { notifier.addListener(new GwtRunListener()); GwtConfig.get().setupGwtModule(getTestClass().getJavaClass()); super.run(notifier); }
@Override public void run(RunNotifier notifier) { notifier.addListener(new GwtRunListener()); GwtConfig.get().setupGwtModule(getTestClass().getJavaClass()); super.run(notifier); }
@Override public void run(RunNotifier notifier) { // Set the context classloader to the test class classloader before running test ClassLoader cl = ClassLoaders.setContextClassLoader(getTestClass().getJavaClass().getClassLoader()); try { super.run(notifier); } finally { ClassLoaders.setContextClassLoader(cl); } }