Hi, I'm trying to figure out what would be causing the following warning: Running tests in eds:lib-shared Trying to override old definition of datatype junit
The test code I'm using is below. Thanks for any insights! - Chris -------- package com.emaildatasource.eds.java.file; import java.io.File; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.emaildatasource.eds.java.helper.FileHelper; public class TestDirectoryWatcher { private static final String TEST_DIRECTORY = "./data"; @Before public void before() throws Exception { File directory = new File(TEST_DIRECTORY); if (!directory.exists()) { directory.mkdir(); } } @After public void after() throws Exception { FileHelper.deleteAll(new File(TEST_DIRECTORY)); } @Test public void testDirectoryWatcherThreadShutdown() throws Exception { DirectoryWatcher watcher = new DirectoryWatcher(TEST_DIRECTORY, 1); watcher.startMonitor(new DirectoryWatcherCallback() { @Override public void onFileArrived(File file) { //no-op } }); Thread.sleep(500); assertTrue(watcher.isRunning()); Thread.sleep(500); //Shutdown the watcher watcher.stopMonitor(); assertTrue(watcher.isRunning()); } }