Polish
This commit is contained in:
@@ -41,6 +41,7 @@ public class SampleJettySslApplicationTests {
|
||||
|
||||
@Autowired
|
||||
private TestRestTemplate restTemplate;
|
||||
|
||||
@Autowired
|
||||
private AbstractConfigurableWebServerFactory webServerFactory;
|
||||
|
||||
@@ -55,4 +56,5 @@ public class SampleJettySslApplicationTests {
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(entity.getBody()).isEqualTo("Hello World");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -52,10 +52,13 @@ public class SampleTomcatTwoConnectorsApplicationTests {
|
||||
|
||||
@LocalServerPort
|
||||
private int port;
|
||||
|
||||
@Autowired
|
||||
private Ports ports;
|
||||
|
||||
@Autowired
|
||||
private TestRestTemplate restTemplate;
|
||||
|
||||
@Autowired
|
||||
private AbstractConfigurableWebServerFactory webServerFactory;
|
||||
|
||||
|
||||
@@ -31,13 +31,7 @@ public class SampleController {
|
||||
|
||||
@GetMapping("/async")
|
||||
public Callable<String> helloWorldAsync() {
|
||||
return new Callable<String>() {
|
||||
|
||||
@Override
|
||||
public String call() throws Exception {
|
||||
return "async: Hello World";
|
||||
}
|
||||
};
|
||||
return () -> "async: Hello World";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user