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