Klasse AntUnitSuiteRunner

java.lang.Object
org.junit.runner.Runner
org.apache.ant.antunit.junit4.AntUnitSuiteRunner
Alle implementierten Schnittstellen:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class AntUnitSuiteRunner extends org.junit.runner.Runner implements org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
JUnit4 Runner to put in a RunWith annotation of the AntUnitSuite when using a JUnit4 runner. Using this runner is not mandatory because junit4 is able to run junit3 test. However, the test may be faster with this Runner (with the default junit4 adapter, the suiteSetUp and suiteTearDown will be executed around every test target). Also, more features are available when this runner is used (filtering & sorting)
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    AntUnitSuiteRunner(Class<?> testCaseClass)
     
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    void
    filter(org.junit.runner.manipulation.Filter filter)
    Filterable implementation
    org.junit.runner.Description
    Runner implementation
    void
    run(org.junit.runner.notification.RunNotifier junitNotifier)
    Runner implementation
    void
    sort(org.junit.runner.manipulation.Sorter sorter)
    Sortable implementation

    Von Klasse geerbte Methoden org.junit.runner.Runner

    testCount

    Von Klasse geerbte Methoden Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • AntUnitSuiteRunner

      public AntUnitSuiteRunner(Class<?> testCaseClass) throws org.junit.internal.runners.InitializationError
      Löst aus:
      org.junit.internal.runners.InitializationError
  • Methodendetails

    • filter

      public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
      Filterable implementation
      Angegeben von:
      filter in Schnittstelle org.junit.runner.manipulation.Filterable
      Löst aus:
      org.junit.runner.manipulation.NoTestsRemainException
    • sort

      public void sort(org.junit.runner.manipulation.Sorter sorter)
      Sortable implementation
      Angegeben von:
      sort in Schnittstelle org.junit.runner.manipulation.Sortable
    • getDescription

      public org.junit.runner.Description getDescription()
      Runner implementation
      Angegeben von:
      getDescription in Schnittstelle org.junit.runner.Describable
      Angegeben von:
      getDescription in Klasse org.junit.runner.Runner
    • run

      public void run(org.junit.runner.notification.RunNotifier junitNotifier)
      Runner implementation
      Angegeben von:
      run in Klasse org.junit.runner.Runner