Browse Source

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
pull/3339/head
izeye 11 years ago committed by Stephane Nicoll
parent
commit
761c985337
  1. 5
      spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpointTests.java

5
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpointTests.java

@ -62,11 +62,6 @@ public class LogFileMvcEndpointTests { @@ -62,11 +62,6 @@ public class LogFileMvcEndpointTests {
this.mvc.setEnvironment(this.environment);
}
@After
public void after() {
new File("test.log").delete();
}
@Test
public void notAvailableWithoutLogFile() throws IOException {
assertThat(this.mvc.available().getStatusCode(), equalTo(HttpStatus.NOT_FOUND));

Loading…
Cancel
Save