@Test public void testReject() { final String fileName = "Test"; final BeforeExecutionExclusionFileFilter filter = new BeforeExecutionExclusionFileFilter(); filter.setFileNamePattern(Pattern.compile(fileName)); final BeforeExecutionFileFilterSet set = new BeforeExecutionFileFilterSet(); set.addBeforeExecutionFileFilter(filter); assertFalse(set.accept("ATest.java")); }
@Test public void testToString2() { final BeforeExecutionFileFilterSet filterSet = new BeforeExecutionFileFilterSet(); filterSet.addBeforeExecutionFileFilter(new BeforeExecutionExclusionFileFilter()); assertNotNull("size is the same", filterSet.toString()); }
@Test public void testGetFilters2() { final BeforeExecutionFileFilterSet filterSet = new BeforeExecutionFileFilterSet(); filterSet.addBeforeExecutionFileFilter(new BeforeExecutionExclusionFileFilter()); assertEquals("size is the same", 1, filterSet.getBeforeExecutionFileFilters().size()); }