2015-05-31 11:55:18 +03:00
|
|
|
package com.iluwatar.executearound;
|
2015-03-29 21:25:13 +03:00
|
|
|
|
2015-04-09 18:26:58 +03:00
|
|
|
import java.io.File;
|
2015-03-29 21:25:13 +03:00
|
|
|
import java.io.IOException;
|
|
|
|
|
2015-04-09 18:26:58 +03:00
|
|
|
import org.junit.After;
|
|
|
|
import org.junit.Before;
|
2015-03-29 21:25:13 +03:00
|
|
|
import org.junit.Test;
|
|
|
|
|
2015-05-31 11:55:18 +03:00
|
|
|
import com.iluwatar.executearound.App;
|
|
|
|
|
2015-03-29 21:25:13 +03:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Tests execute-around example.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class AppTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void test() throws IOException {
|
|
|
|
String[] args = {};
|
|
|
|
App.main(args);
|
|
|
|
}
|
2015-04-09 18:26:58 +03:00
|
|
|
|
|
|
|
@Before
|
|
|
|
@After
|
|
|
|
public void cleanup() {
|
|
|
|
File file = new File("testfile.txt");
|
|
|
|
file.delete();
|
|
|
|
}
|
2015-03-29 21:25:13 +03:00
|
|
|
}
|