Class AbstractListeningRunner<R extends Class<? extends org.junit.runner.Runner>>

java.lang.Object
org.junit.runner.Runner
com.atlassian.jira.local.runner.AbstractListeningRunner<R>
All Implemented Interfaces:
org.junit.runner.Describable
Direct Known Subclasses:
ListeningRunner

public class AbstractListeningRunner<R extends Class<? extends org.junit.runner.Runner>> extends org.junit.runner.Runner
A base class to be used to wrap other JUnit4 runners and listen to the events that will be generated for tests
Since:
v4.3
  • Constructor Details

    • AbstractListeningRunner

      public AbstractListeningRunner(Class<?> classUnderTest, R runnerDelegateClass)
  • Method Details

    • getDescription

      public org.junit.runner.Description getDescription()
      Specified by:
      getDescription in interface org.junit.runner.Describable
      Specified by:
      getDescription in class org.junit.runner.Runner
    • testCount

      public int testCount()
      Overrides:
      testCount in class org.junit.runner.Runner
    • run

      public void run(org.junit.runner.notification.RunNotifier notifier)
      Specified by:
      run in class org.junit.runner.Runner