blob: e2bfb73580446eee95c2ede48382f24f4b3a9c83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.junit.runner;
import org.junit.runner.manipulation.Filter;
/**
* Extend this class to create a factory that creates {@link Filter}.
*/
public interface FilterFactory {
/**
* Creates a {@link Filter} given a {@link FilterFactoryParams} argument.
*
* @param params Parameters needed to create the {@link Filter}
*/
Filter createFilter(FilterFactoryParams params) throws FilterNotCreatedException;
/**
* Exception thrown if the {@link Filter} cannot be created.
*/
@SuppressWarnings("serial")
class FilterNotCreatedException extends Exception {
public FilterNotCreatedException(Exception exception) {
super(exception.getMessage(), exception);
}
}
}
|