use of org.junit.runner.FilterFactoryParams in project junit4 by junit-team.
the class CategoryFilterFactoryTest method shouldCreateFilter.
@Test
public void shouldCreateFilter() throws Exception {
FilterFactoryParams params = new FilterFactoryParams(createSuiteDescription(testName.getMethodName()), CategoryFilterFactoryStub.class.getName());
Filter filter = categoryFilterFactory.createFilter(params);
assertThat(filter, instanceOf(DummyFilter.class));
}
use of org.junit.runner.FilterFactoryParams in project junit4 by junit-team.
the class CategoryFilterFactoryTest method shouldThrowException.
@Test
public void shouldThrowException() throws Exception {
FilterFactoryParams params = new FilterFactoryParams(createSuiteDescription(testName.getMethodName()), "NonExistentFilter");
expectedException.expect(FilterFactory.FilterNotCreatedException.class);
categoryFilterFactory.createFilter(params);
}
Aggregations