Package org.junit.runner.manipulation
Interface Filterable
-
- All Known Implementing Classes:
AllTests,BlockJUnit4ClassRunner,BlockJUnit4ClassRunnerWithParameters,Categories,Enclosed,org.junit.internal.runners.JUnit38ClassRunner,JUnit4,Parameterized,ParentRunner,Suite,org.junit.internal.runners.SuiteMethod,Theories
public interface Filterable
Runners that allow filtering should implement this interface. Implementfilter(Filter)to remove tests that don't pass the filter.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfilter(Filter filter)Remove tests that don't pass the parameterfilter.
-
-
-
Method Detail
-
filter
void filter(Filter filter) throws NoTestsRemainException
Remove tests that don't pass the parameterfilter.- Parameters:
filter- theFilterto apply- Throws:
NoTestsRemainException- if all tests are filtered out
-
-