Added test cleanup.

This commit is contained in:
Ilkka Seppala 2015-04-29 18:54:33 +03:00
parent b58311aedf
commit 5562795a5f

View File

@ -1,7 +1,10 @@
package com.iluwatar;
import java.io.File;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@ -12,4 +15,13 @@ public class AppTest {
String[] args = {};
App.main(args);
}
@Before
@After
public void cleanup() {
File file1 = new File("fish1.out");
file1.delete();
File file2 = new File("fish2.out");
file2.delete();
}
}