Exemplo n.º 1
0
 @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());
 }
Exemplo n.º 2
0
 @Test
 public void testNoReadAfterInitialRead() throws PatternSyntaxException, IOException {
   _check.rereadConfig();
   assertFalse("read still required after initial read", _check.fileNeedsRereading());
 }