Class JUnitFilterSupplier
- java.lang.Object
-
- de.bmiag.tapir.junitexecution.bootstrap.JUnitFilterSupplier
-
- All Implemented Interfaces:
java.util.function.Supplier<org.junit.runner.manipulation.Filter>
@Component("tapirJUnitFilterSupplier") public class JUnitFilterSupplier extends java.lang.Object implements java.util.function.Supplier<org.junit.runner.manipulation.Filter>
Supplies aFilter
. The filter is passed toTapirJUnitBootstrapper.filter(Filter)
and is not present when the tapir application is bootstrapped. Therefore we need thisSupplier
in order to provide the filter instance lazily.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description JUnitFilterSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runner.manipulation.Filter
get()
Returns the filtervoid
set(org.junit.runner.manipulation.Filter filter)
Sets the filter.
-
-
-
Method Detail
-
set
public void set(org.junit.runner.manipulation.Filter filter)
Sets the filter.- Parameters:
filter
- the filter to use- Throws:
java.lang.NullPointerException
- thrown if filter is null
-
get
public org.junit.runner.manipulation.Filter get()
Returns the filter- Specified by:
get
in interfacejava.util.function.Supplier<org.junit.runner.manipulation.Filter>
- Returns:
- the filter
- Throws:
java.lang.IllegalStateException
- thrown if no filter is set
-
-