Class TapirJUnitBootstrapper
- java.lang.Object
-
- org.junit.runner.Runner
-
- de.bmiag.tapir.junitexecution.bootstrap.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
TheTapirJUnitBootstrapper
is the main entry point for initializing a tapir test run using JUnit. It should be used with JUnit'sRunWith
annotation. Additionally theTapirJUnitBootstrapper
expects the definition of the Spring context by using theTapirContextConfiguration
annotation.
TheTapirJUnitBootstrapper
delegates to theTapirExecutor
who is responsible for providing and executing the execution plan.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
- See Also:
RunWith
,TapirContextConfiguration
,TapirExecutor
-
-
Constructor Summary
Constructors Constructor Description TapirJUnitBootstrapper(java.lang.Class<?> testClass)
Constructs aTapirJUnitBootstrapper
instance based on the given testClass.
-
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)
-
-
-
Constructor Detail
-
TapirJUnitBootstrapper
public TapirJUnitBootstrapper(java.lang.Class<?> testClass)
Constructs aTapirJUnitBootstrapper
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 interfaceorg.junit.runner.Describable
- Specified by:
getDescription
in classorg.junit.runner.Runner
-
run
public void run(org.junit.runner.notification.RunNotifier runNotifier)
- Specified by:
run
in classorg.junit.runner.Runner
-
filter
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
- Specified by:
filter
in interfaceorg.junit.runner.manipulation.Filterable
- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-
-