@Test public void testRereadNeededAfterTouch() throws PatternSyntaxException, IOException, InterruptedException { _check.rereadConfig(); // Sleep for 1s to allow filesystem to notice a filechange. Thread.sleep(1000); saveContents(""); assertTrue("no read required after touch", _check.fileNeedsRereading()); }
@Test public void testNoReadAfterInitialRead() throws PatternSyntaxException, IOException { _check.rereadConfig(); assertFalse("read still required after initial read", _check.fileNeedsRereading()); }