|
26 | 26 | import org.junit.jupiter.api.BeforeAll;
|
27 | 27 | import org.junit.jupiter.api.BeforeEach;
|
28 | 28 | import org.junit.jupiter.api.Test;
|
29 |
| -import org.junit.jupiter.api.extension.ExtendWith; |
30 | 29 |
|
31 | 30 | import org.springframework.beans.factory.annotation.Autowired;
|
32 | 31 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
33 | 32 | import org.springframework.boot.test.context.SpringBootTest;
|
34 |
| -import org.springframework.boot.test.system.CapturedOutput; |
35 |
| -import org.springframework.boot.test.system.OutputCaptureExtension; |
36 | 33 | import org.springframework.boot.web.server.test.LocalServerPort;
|
37 | 34 | import org.springframework.cloud.client.DefaultServiceInstance;
|
38 | 35 | import org.springframework.cloud.gateway.config.GatewayMetricsProperties;
|
|
55 | 52 | */
|
56 | 53 | @SpringBootTest(classes = { GatewaySampleApplicationTests.TestConfig.class }, webEnvironment = RANDOM_PORT,
|
57 | 54 | properties = { "management.endpoint.gateway.enabled=true", "management.server.port=${test.port}" })
|
58 |
| -@ExtendWith(OutputCaptureExtension.class) |
59 | 55 | public class GatewaySampleApplicationTests {
|
60 | 56 |
|
61 | 57 | protected static int managementPort;
|
@@ -263,12 +259,6 @@ public void actuatorMetrics() {
|
263 | 259 | });
|
264 | 260 | }
|
265 | 261 |
|
266 |
| - @Test |
267 |
| - void usesNewStarter(CapturedOutput output) { |
268 |
| - assertThat(output).doesNotContain("spring-cloud-starter-gateway is deprecated") |
269 |
| - .doesNotContain("spring-cloud-gateway-server is deprecated"); |
270 |
| - } |
271 |
| - |
272 | 262 | @Configuration(proxyBeanMethods = false)
|
273 | 263 | @EnableAutoConfiguration
|
274 | 264 | @LoadBalancerClient(name = "httpbin", configuration = LoadBalancerConfig.class)
|
|
0 commit comments