org.junit.runner.FilterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit Show documentation
Show all versions of junit Show documentation
JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.
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.
*/
public static class FilterNotCreatedException extends Exception {
public FilterNotCreatedException(Exception exception) {
super(exception.getMessage(), exception);
}
}
}