npublic
class OutputTest
n{
n private File output;
n
n @Before public
void createOutputFile() {
n output = new File(...);
n }
n
n @After public
void deleteOutputFile() {
n output.delete();
n }
n
n @Test public void
test1WithFile() {
n // code for test case objective
n }
n
n @Test public void
test2WithFile() {
n // code for test case objective
n }
n}