01: package org.junit.runner.manipulation;
02:
03: /**
04: * Runners that allow filtering should implement this interface. Implement {@link #filter(Filter)}
05: * to remove tests that don't pass the filter.
06: */
07: public interface Filterable {
08:
09: /**
10: * Remove tests that don't pass the parameter <code>filter</code>.
11: * @param filter the {@link Filter} to apply
12: * @throws NoTestsRemainException if all tests are filtered out
13: */
14: void filter(Filter filter) throws NoTestsRemainException;
15:
16: }
|