Skip to content

Commit 5562795

Browse files
committed
Added test cleanup.
1 parent b58311a commit 5562795

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tolerant-reader/src/test/java/com/iluwatar/AppTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package com.iluwatar;
22

3+
import java.io.File;
34
import java.io.IOException;
45

6+
import org.junit.After;
7+
import org.junit.Before;
58
import org.junit.Test;
69

710

@@ -12,4 +15,13 @@ public void test() throws ClassNotFoundException, IOException {
1215
String[] args = {};
1316
App.main(args);
1417
}
18+
19+
@Before
20+
@After
21+
public void cleanup() {
22+
File file1 = new File("fish1.out");
23+
file1.delete();
24+
File file2 = new File("fish2.out");
25+
file2.delete();
26+
}
1527
}

0 commit comments

Comments
 (0)