File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/test/java/org/scijava/io/event Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 28
28
*/
29
29
package org .scijava .io .event ;
30
30
31
- import org .junit .Test ;
32
-
33
31
import static org .junit .Assert .assertEquals ;
34
32
33
+ import java .io .File ;
34
+ import java .io .IOException ;
35
+
36
+ import org .junit .Test ;
37
+
35
38
public class DataEventTest {
36
39
37
40
@ Test
38
- public void testDeprecatedMethods () {
39
- String localPath = "/local/absolute/path.txt" ;
41
+ public void testDeprecatedMethods () throws IOException {
42
+ File tmpFile = File .createTempFile ("path" , "txt" );
43
+ tmpFile .deleteOnExit ();
44
+ String localPath = tmpFile .getAbsolutePath ();
40
45
Object obj = null ;
41
46
DataOpenedEvent openedEvent = new DataOpenedEvent (localPath , obj );
42
47
DataSavedEvent savedEvent = new DataSavedEvent (localPath , obj );
You can’t perform that action at this time.
0 commit comments