Skip to content
Permalink
Browse files
Update FileDropEventTest.java
Assert new file created
icklesteve committed Sep 10, 2022
1 parent 01930c1 commit 3e2427222f6e6822972d54c5a472d493733a01e3
Showing 1 changed file with 3 additions and 3 deletions.
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");

COLLECTOR-SAHAB / covering test: FileDropEventTest

folder.path=/tmp/junit10590416244786201449 only occurs in the original version.

COLLECTOR-SAHAB / covering test: FileDropEventTest

folder.path=/tmp/junit4843040230245631235 only occurs in the patched version.

file.createNewFile();
Assertions.assertTrue(file.createNewFile());
fl[0]=file.toURI();
file = new File(folder, "2");
file.createNewFile();
Assertions.assertTrue(file.createNewFile());
fl[1]=file.toURI();
file = new File(folder, "3");
file.createNewFile();
Assertions.assertTrue(file.createNewFile());
fl[2]=file.toURI();
URIDropEvent t = new URIDropEvent(fl,this);
Assert.assertNotNull("exists",t);
}
@BeforeEach

0 comments on commit 3e24272

Please sign in to comment.