Skip to content

Commit 3fd40b9

Browse files
committed
Removes test for warnings for old artifacts
See gh-3858
1 parent e54b584 commit 3fd40b9

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

spring-cloud-gateway-server-webflux/src/test/java/org/springframework/cloud/gateway/test/GatewayIntegrationTests.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@
2626
import org.hamcrest.BaseMatcher;
2727
import org.hamcrest.Description;
2828
import org.junit.jupiter.api.Test;
29-
import org.junit.jupiter.api.extension.ExtendWith;
3029
import reactor.core.publisher.Mono;
3130

3231
import org.springframework.beans.factory.annotation.Autowired;
3332
import org.springframework.boot.SpringBootConfiguration;
3433
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
3534
import org.springframework.boot.test.context.SpringBootTest;
36-
import org.springframework.boot.test.system.CapturedOutput;
37-
import org.springframework.boot.test.system.OutputCaptureExtension;
3835
import org.springframework.cloud.gateway.config.GatewayProperties;
3936
import org.springframework.cloud.gateway.filter.GlobalFilter;
4037
import org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter;
@@ -70,7 +67,6 @@
7067
"logging.level.org.springframework.cloud.gateway.filter.headers=TRACE" })
7168
@DirtiesContext
7269
@SuppressWarnings("unchecked")
73-
@ExtendWith(OutputCaptureExtension.class)
7470
class GatewayIntegrationTests extends BaseWebClientTests {
7571

7672
@Autowired
@@ -219,11 +215,6 @@ void noContentType() {
219215
testClient.get().uri("/nocontenttype").exchange().expectStatus().is2xxSuccessful();
220216
}
221217

222-
@Test
223-
void logsArtifactDeprecatedWarning(CapturedOutput output) {
224-
assertThat(output).contains("spring-cloud-gateway-server is deprecated");
225-
}
226-
227218
@EnableAutoConfiguration
228219
@SpringBootConfiguration
229220
@Import(DefaultTestConfig.class)

spring-cloud-gateway-server-webmvc/src/test/java/org/springframework/cloud/gateway/server/mvc/ServerMvcIntegrationTests.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,12 @@
4242
import org.assertj.core.api.Assertions;
4343
import org.junit.jupiter.api.Disabled;
4444
import org.junit.jupiter.api.Test;
45-
import org.junit.jupiter.api.extension.ExtendWith;
4645

4746
import org.springframework.beans.factory.annotation.Autowired;
4847
import org.springframework.boot.SpringBootConfiguration;
4948
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5049
import org.springframework.boot.test.context.SpringBootTest;
5150
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
52-
import org.springframework.boot.test.system.CapturedOutput;
53-
import org.springframework.boot.test.system.OutputCaptureExtension;
5451
import org.springframework.boot.web.server.test.LocalServerPort;
5552
import org.springframework.boot.web.server.test.client.TestRestTemplate;
5653
import org.springframework.boot.web.servlet.FilterRegistrationBean;
@@ -151,7 +148,6 @@
151148
@SpringBootTest(properties = { "spring.http.client.factory=jdk", "spring.cloud.gateway.function.enabled=false",
152149
"logging.level.org.springframework.security=TRACE" }, webEnvironment = WebEnvironment.RANDOM_PORT)
153150
@ContextConfiguration(initializers = HttpbinTestcontainers.class)
154-
@ExtendWith(OutputCaptureExtension.class)
155151
public class ServerMvcIntegrationTests {
156152

157153
static {
@@ -1029,11 +1025,6 @@ public void clientResponseBodyAttributeWorks() {
10291025
});
10301026
}
10311027

1032-
@Test
1033-
void logsArtifactDeprecatedWarning(CapturedOutput output) {
1034-
assertThat(output).contains("spring-cloud-gateway-server-mvc is deprecated");
1035-
}
1036-
10371028
@SpringBootConfiguration
10381029
@EnableAutoConfiguration
10391030
@LoadBalancerClient(name = "httpbin", configuration = TestLoadBalancerConfig.Httpbin.class)

0 commit comments

Comments
 (0)