@Override public void run(RunNotifier notifier) { 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) { super.run(runnotifier); }
/** * Run. It is only overwritten for better testing support. * * @param notifier * the notifier * @see org.junit.runners.ParentRunner#run(org.junit.runner.notification.RunNotifier) */ @Override public void run(final RunNotifier notifier) { super.run(notifier); }
@Override public void run(final RunNotifier notifier) { try { super.run(notifier); } finally { generateReports(); } }
@Override public void run(final RunNotifier notifier) { cucumberScenarioOutline.formatOutlineScenario(jUnitReporter); super.run(notifier); } }
@Override public void run(final RunNotifier notifier) { cucumberScenarioOutline.formatOutlineScenario(jUnitReporter); super.run(notifier); }
@Override public void run(final RunNotifier notifier) { cucumberScenarioOutline.formatOutlineScenario(jUnitReporter); super.run(notifier); } }
@Override public void run(final RunNotifier notifier) { jUnitReporter.examples(cucumberExamples.getExamples()); super.run(notifier); }
@Override public void run(final RunNotifier notifier) { jUnitReporter.examples(cucumberExamples.getExamples()); super.run(notifier); } }
@Override public void run(final RunNotifier notifier) { jUnitReporter.examples(cucumberExamples.getExamples()); super.run(notifier); } }
@Override public void run( RunNotifier notifier ) { try { beforeRunQuietly(); super.run( notifier ); } finally { afterRunQuietly(); } } };
@Override public void run(RunNotifier notifier) { LOG.info("[BOOTSTRAP] Initiate configuration suite servers bootstrap for suite '{}'.", getTestClass().getName()); ServerBootstrap.ServersRunstateListener runstateListener = new ServerBootstrap(this).runAll(); // This listener must be added only when executing outside the suite. listeners.add(runstateListener); super.run(notifier); }
@Override public void run(RunNotifier notifier) { if (Configuration.current().drivers.stream().anyMatch(driver -> driver instanceof GridConfiguration && driver.as(GridConfiguration.class).enableLiveStream)) { liveStreamListener = new LiveStreamListener(); notifier.addListener(liveStreamListener); } notifier.fireTestRunStarted(getDescription()); super.run(notifier); }
@Override public void run(RunNotifier notifier) { if (Configuration.current().drivers.stream().anyMatch(driver -> driver instanceof GridConfiguration && driver.as(GridConfiguration.class).enableLiveStream)) { liveStreamListener = new LiveStreamListener(); notifier.addListener(liveStreamListener); } notifier.fireTestRunStarted(getDescription()); super.run(notifier); }
@Override public void run(RunNotifier notifier) { try { runBeforeMethods(); } catch (Exception e) { notifier.fireTestFailure(new Failure(getDescription(), e)); return; } super.run(notifier); }
@Override public void run(RunNotifier notifier) { try { runBeforeMethods(); } catch (Exception e) { notifier.fireTestFailure(new Failure(getDescription(), e)); return; } super.run(notifier); }
@Override public void run(RunNotifier notifier) { try { runBeforeMethods(); } catch (Exception e) { notifier.fireTestFailure(new Failure(getDescription(), e)); return; } super.run(notifier); }
@Override public void run(final RunNotifier notifier) { clear(); HippoRepository server = null; try { server = HippoRepositoryFactory.getHippoRepository(); RepositoryTestCase.setRepository(server); super.run(notifier); } catch (RepositoryException ex) { System.err.println(ex.getClass().getName() + ": " + ex.getMessage()); ex.printStackTrace(System.err); } finally { if (server != null) { server.close(); } clear(); } } }
@Override public void run(final RunNotifier notifier) { if (launchServer) { // Start and stop the server notifier.addListener(new ServerStartStopListener()); notifier.fireTestRunStarted(Description.EMPTY); } if (!runParallel) { notifier.addListener(new DriverSuiteClosePoolListener()); } super.run(notifier); }
@Override public void run(RunNotifier notifier) { if (this.testSuiteClass == null) { throw new IllegalStateException("no test-suite class found"); } CdiContainer container = CdiContainerLoader.getCdiContainer(); if (!containerStarted) { applyTestSpecificMetaData(getTestClass().getJavaClass()); container.boot(getTestContainerConfig()); containerStarted = true; } notifier.addListener(new LogRunListener()); try { super.run(notifier); } finally { if (STOP_CONTAINER) { container.shutdown(); containerStarted = false; } } }