接口 Filterable
- 所有已知实现类:
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.- 从以下版本开始:
- 4.0
方法详细资料
filter
void filter(Filter filter) throws NoTestsRemainException
Remove tests that don't pass the parameterfilter
.- 参数:
filter
- theFilter
to apply- 抛出:
NoTestsRemainException
- if all tests are filtered out