Merge pull request #3335 from izeye/patch-27

* pr/3335:
  Remove unnecessary import
  Remove unnecessary `@After` callback
This commit is contained in:
Stephane Nicoll 2015-06-26 08:26:40 +02:00
commit e02082da99
1 changed files with 0 additions and 6 deletions

View File

@ -21,7 +21,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@ -62,11 +61,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));