This commit is contained in:
Phillip Webb
2016-05-13 18:20:07 -07:00
parent a1ac934bee
commit 6cdbdf9ad3
8 changed files with 97 additions and 20 deletions

View File

@@ -57,4 +57,10 @@ public class TriggerFileFilterTests {
assertThat(new TriggerFileFilter("thefile.txt").accept(file)).isFalse();
}
@Test
public void testName() throws Exception {
File file = this.temp.newFile(".triggerfile").getAbsoluteFile();
assertThat(new TriggerFileFilter(".triggerfile").accept(file)).isTrue();
}
}