Tabnine Logo
org.junit.runner.notification
Code IndexAdd Tabnine to your IDE (free)

How to use org.junit.runner.notification

Best Java code snippets using org.junit.runner.notification (Showing top 20 results out of 1,863)

origin: org.mockito/mockito-core

@Override
public void testFailure(Failure failure) throws Exception {
  super.testFailure(failure);
  failed = true;
}
origin: junit-team/junit4

private void testAborted(RunNotifier notifier, Description description,
    Throwable e) {
  notifier.fireTestStarted(description);
  notifier.fireTestFailure(new Failure(description, e));
  notifier.fireTestFinished(description);
}
origin: junit-team/junit4

  @Override
  public void run(RunNotifier notifier) {
    notifier.fireTestAssumptionFailed(new Failure(description, exception));
  }
}
origin: junit-team/junit4

  protected void addFailure(Throwable e) {
    notifier.fireTestFailure(new Failure(description, e));
  }
}
origin: junit-team/junit4

/**
 * Add a listener to be notified as the tests run.
 *
 * @param listener the listener to add
 * @see org.junit.runner.notification.RunListener
 */
public void addListener(RunListener listener) {
  notifier.addListener(listener);
}
origin: junit-team/junit4

/**
 * Remove a listener.
 *
 * @param listener the listener to remove
 */
public void removeListener(RunListener listener) {
  notifier.removeListener(listener);
}
origin: junit-team/junit4

  @Override
  protected void notifyListener(RunListener each) throws Exception {
    each.testRunStarted(description);
  }
}.run();
origin: junit-team/junit4

  @Override
  protected void notifyListener(RunListener each) throws Exception {
    each.testStarted(description);
  }
}.run();
origin: junit-team/junit4

  @Override
  protected void notifyListener(RunListener each) throws Exception {
    each.testRunFinished(result);
  }
}.run();
origin: junit-team/junit4

  @Override
  protected void notifyListener(RunListener each) throws Exception {
    each.testFinished(description);
  }
}.run();
origin: junit-team/junit4

@Override
public void testAssumptionFailure(Failure failure) {
  synchronized (monitor) {
    listener.testAssumptionFailure(failure);
  }
}
origin: junit-team/junit4

/**
 * Do not invoke.
 */
public void fireTestRunStarted(final Description description) {
  new SafeNotifier() {
    @Override
    protected void notifyListener(RunListener each) throws Exception {
      each.testRunStarted(description);
    }
  }.run();
}
origin: junit-team/junit4

  @Override
  protected void notifyListener(RunListener each) throws Exception {
    each.testSuiteFinished(description);
  }
}.run();
origin: junit-team/junit4

  @Override
  protected void notifyListener(RunListener each) throws Exception {
    each.testSuiteStarted(description);
  }
}.run();
origin: junit-team/junit4

/**
 * Calls {@link RunNotifier#fireTestSuiteStarted(Description)}, passing the
 * {@link Description} that was passed to the {@code EachTestNotifier} constructor.
 * This should be called when a test suite is about to be started.
 * @see RunNotifier#fireTestSuiteStarted(Description)
 * @since 4.13
 */
public void fireTestSuiteStarted() {
  notifier.fireTestSuiteStarted(description);
}
origin: google/j2objc

private void testAborted(RunNotifier notifier, Description description,
    Throwable e) {
  notifier.fireTestStarted(description);
  notifier.fireTestFailure(new Failure(description, e));
  notifier.fireTestFinished(description);
}
origin: junit-team/junit4

protected void addFailure(Throwable targetException) {
  notifier.fireTestFailure(new Failure(description, targetException));
}
origin: junit-team/junit4

public void addFailedAssumption(AssumptionViolatedException e) {
  notifier.fireTestAssumptionFailed(new Failure(description, e));
}
origin: junit-team/junit4

  @Override
  protected void notifyListener(RunListener listener) throws Exception {
    for (Failure each : failures) {
      listener.testFailure(each);
    }
  }
}.run();
origin: junit-team/junit4

  @Override
  protected void notifyListener(RunListener each) throws Exception {
    each.testAssumptionFailure(failure);
  }
}.run();
org.junit.runner.notification

Most used classes

  • RunNotifier
    If you write custom runners, you may need to notify JUnit of your progress running tests. Do this by
  • Failure
    A Failure holds a description of the failed test and the exception that was thrown while running it.
  • RunListener
    If you need to respond to the events during a test run, extend RunListener and override the appropri
  • StoppedByUserException
    Thrown when a user has requested that the test run stop. Writers of test running GUIs should be prep
  • RunListener$ThreadSafe
  • RunNotifier$3,
  • RunNotifier$5,
  • RunNotifier$6,
  • RunNotifier$7,
  • RunNotifier$SafeNotifier,
  • RunNotifier$1,
  • RunNotifier$4,
  • SynchronizedRunListener,
  • RunNotifier$8,
  • RunNotifier$9
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now