Skip to content

Instantly share code, notes, and snippets.

@apennebaker
Created December 10, 2013 16:05
Show Gist options
  • Save apennebaker/7893107 to your computer and use it in GitHub Desktop.
Save apennebaker/7893107 to your computer and use it in GitHub Desktop.
@Before
public final void setupTest() throws IOException {
this.tempFile = File.createTempFile("test", null);
}
@After
public final void teardownTest() throws IOException {
this.tempFile.delete();
}
@Test
public final void test() throws IOException {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment