Skip to content

Commit 761c985

Browse files
izeyesnicoll
authored andcommitted
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
1 parent 8b5d44a commit 761c985

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ public void before() throws IOException {
6262
this.mvc.setEnvironment(this.environment);
6363
}
6464

65-
@After
66-
public void after() {
67-
new File("test.log").delete();
68-
}
69-
7065
@Test
7166
public void notAvailableWithoutLogFile() throws IOException {
7267
assertThat(this.mvc.available().getStatusCode(), equalTo(HttpStatus.NOT_FOUND));

0 commit comments

Comments
 (0)