Commit 761c9853 authored by izeye's avatar izeye Committed by Stephane Nicoll

Remove unnecessary `@After` callback

`@After` callback was trying to remove the wrong file anyway. This is
now taken care of by the `TemporaryFolder` rule.

Closes gh-3335
parent 8b5d44a5
...@@ -62,11 +62,6 @@ public class LogFileMvcEndpointTests { ...@@ -62,11 +62,6 @@ public class LogFileMvcEndpointTests {
this.mvc.setEnvironment(this.environment); this.mvc.setEnvironment(this.environment);
} }
@After
public void after() {
new File("test.log").delete();
}
@Test @Test
public void notAvailableWithoutLogFile() throws IOException { public void notAvailableWithoutLogFile() throws IOException {
assertThat(this.mvc.available().getStatusCode(), equalTo(HttpStatus.NOT_FOUND)); assertThat(this.mvc.available().getStatusCode(), equalTo(HttpStatus.NOT_FOUND));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment