Commit e02082da authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #3335 from izeye/patch-27

* pr/3335:
  Remove unnecessary import
  Remove unnecessary `@After` callback
parents 8b5d44a5 12767a43
...@@ -21,7 +21,6 @@ import java.io.IOException; ...@@ -21,7 +21,6 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
...@@ -62,11 +61,6 @@ public class LogFileMvcEndpointTests { ...@@ -62,11 +61,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