47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package jmri.util.iharder.dnd;
|
|
|
|
import java.io.File;
|
|
import java.net.URI;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
import org.junit.jupiter.api.io.TempDir;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class FileDropEventTest {
|
|
|
|
@Test
|
|
public void testCTor(@TempDir File folder) throws java.io.IOException {
|
|
URI fl[] = new URI[3];
|
|
File file = new File(folder, "1");
|
|
assertTrue(file.createNewFile());
|
|
fl[0]=file.toURI();
|
|
file = new File(folder, "2");
|
|
assertTrue(file.createNewFile());
|
|
fl[1]=file.toURI();
|
|
file = new File(folder, "3");
|
|
assertTrue(file.createNewFile());
|
|
fl[2]=file.toURI();
|
|
URIDropEvent t = new URIDropEvent(fl,this);
|
|
assertNotNull( t, "exists");
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
jmri.util.JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
jmri.util.JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(FileDropEventTest.class.getName());
|
|
|
|
}
|