Skip to content

Commit 717cb53

Browse files
committed
Cleanup test data in Execute Around tests.
1 parent 3628a45 commit 717cb53

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

execute-around/src/test/java/com/iluwatar/AppTest.java

Lines changed: 10 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
/**
@@ -16,4 +19,11 @@ public void test() throws IOException {
1619
String[] args = {};
1720
App.main(args);
1821
}
22+
23+
@Before
24+
@After
25+
public void cleanup() {
26+
File file = new File("testfile.txt");
27+
file.delete();
28+
}
1929
}

0 commit comments

Comments
 (0)