Class TapirJUnitBootstrapper

  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable

    public class TapirJUnitBootstrapper
    extends org.junit.runner.Runner
    implements org.junit.runner.manipulation.Filterable
    The TapirJUnitBootstrapper is the main entry point for initializing a tapir test run using JUnit. It should be used with JUnit's RunWith annotation. Additionally the TapirJUnitBootstrapper expects the definition of the Spring context by using the TapirContextConfiguration annotation.

    The TapirJUnitBootstrapper delegates to the TapirExecutor who is responsible for providing and executing the execution plan.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    See Also:
    RunWith, TapirContextConfiguration, TapirExecutor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void filter​(org.junit.runner.manipulation.Filter filter)  
      org.junit.runner.Description getDescription()  
      void run​(org.junit.runner.notification.RunNotifier runNotifier)  
      • Methods inherited from class org.junit.runner.Runner

        testCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TapirJUnitBootstrapper

        public TapirJUnitBootstrapper​(java.lang.Class<?> testClass)
        Constructs a TapirJUnitBootstrapper instance based on the given testClass.
        Parameters:
        testClass - The testClass to execute
        Since:
        2.0.0
    • Method Detail

      • 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
      • run

        public void run​(org.junit.runner.notification.RunNotifier runNotifier)
        Specified by:
        run in class org.junit.runner.Runner
      • filter

        public void filter​(org.junit.runner.manipulation.Filter filter)
                    throws org.junit.runner.manipulation.NoTestsRemainException
        Specified by:
        filter in interface org.junit.runner.manipulation.Filterable
        Throws:
        org.junit.runner.manipulation.NoTestsRemainException