Polish
This commit is contained in:
@@ -61,14 +61,14 @@ public class NonAutoConfigurationSampleTomcatApplicationTests {
|
||||
HelloWorldService.class })
|
||||
public static class NonAutoConfigurationSampleTomcatApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleTomcatApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHome() throws Exception {
|
||||
public void testHome() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/", String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(entity.getBody()).isEqualTo("Hello World");
|
||||
|
||||
@@ -59,7 +59,7 @@ public class SampleTomcatApplicationTests {
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@Test
|
||||
public void testHome() throws Exception {
|
||||
public void testHome() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/", String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(entity.getBody()).isEqualTo("Hello World");
|
||||
@@ -81,7 +81,7 @@ public class SampleTomcatApplicationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTimeout() throws Exception {
|
||||
public void testTimeout() {
|
||||
ServletWebServerApplicationContext context = (ServletWebServerApplicationContext) this.applicationContext;
|
||||
TomcatWebServer embeddedServletContainer = (TomcatWebServer) context
|
||||
.getWebServer();
|
||||
|
||||
Reference in New Issue
Block a user