Skip to content

Commit e02082d

Browse files
committed
Merge pull request #3335 from izeye/patch-27
* pr/3335: Remove unnecessary import Remove unnecessary `@After` callback
2 parents 8b5d44a + 12767a4 commit e02082d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.io.InputStream;
2222
import java.io.InputStreamReader;
2323

24-
import org.junit.After;
2524
import org.junit.Before;
2625
import org.junit.Rule;
2726
import org.junit.Test;
@@ -62,11 +61,6 @@ public void before() throws IOException {
6261
this.mvc.setEnvironment(this.environment);
6362
}
6463

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

0 commit comments

Comments
 (0)