mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 10:19:03 +00:00
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
This commit is contained in:
-5
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user