diff --git a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/FileWatcherTest.java b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/FileWatcherTest.java index 7995a71d05b5f920535ccf092addbd5c25ed4ec0..4dc14b15888fcb3c7b9f64d55cfd6b58231ca438 100644 --- a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/FileWatcherTest.java +++ b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/FileWatcherTest.java @@ -104,19 +104,14 @@ public class FileWatcherTest assertEquals(true, onChangeCalled); } - @Test - public final void testWithTimer() throws IOException + @Test(timeOut = 5000, groups = "slow") + public final void testOnChangeCalled() throws IOException { onChangeCalled = false; FileWatcher fileWatcher = new TestFileWatcher(tmpFile2); FileUtils.touch(tmpFile2); Timer timer = new Timer(true); timer.schedule(fileWatcher, 0); - } - - @Test(dependsOnMethods = "testWithTimer", timeOut = 5000, groups = "slow") - public final void testOnChangeCalled() - { while (onChangeCalled == false) { try