Skip to content

Commit f28d0df

Browse files
committed
Removes test for warnings for old artifacts
See gh-3858
1 parent 2c78c6b commit f28d0df

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

spring-cloud-gateway-proxyexchange-webflux/src/test/java/org/springframework/cloud/gateway/webflux/ProductionConfigurationTests.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@
2525
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
2626
import org.junit.jupiter.api.BeforeEach;
2727
import org.junit.jupiter.api.Test;
28-
import org.junit.jupiter.api.extension.ExtendWith;
2928
import reactor.core.publisher.Flux;
3029
import reactor.core.publisher.Mono;
3130

3231
import org.springframework.beans.factory.annotation.Autowired;
3332
import org.springframework.boot.autoconfigure.SpringBootApplication;
3433
import org.springframework.boot.test.context.SpringBootTest;
3534
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
36-
import org.springframework.boot.test.system.CapturedOutput;
37-
import org.springframework.boot.test.system.OutputCaptureExtension;
3835
import org.springframework.boot.web.server.test.LocalServerPort;
3936
import org.springframework.boot.web.server.test.client.TestRestTemplate;
4037
import org.springframework.cloud.gateway.webflux.ProductionConfigurationTests.TestApplication;
@@ -66,7 +63,6 @@
6663
webEnvironment = WebEnvironment.RANDOM_PORT)
6764
@ContextConfiguration(classes = TestApplication.class)
6865
@DirtiesContext
69-
@ExtendWith(OutputCaptureExtension.class)
7066
public class ProductionConfigurationTests {
7167

7268
@Autowired
@@ -281,11 +277,6 @@ public void deleteWithBody() throws Exception {
281277
assertThat(deleteResponse.getBody().get("deleted")).usingRecursiveComparison().isEqualTo(foo);
282278
}
283279

284-
@Test
285-
void logsArtifactDeprecatedWarning(CapturedOutput output) {
286-
assertThat(output).contains("spring-cloud-gateway-webflux is deprecated");
287-
}
288-
289280
@SpringBootApplication
290281
static class TestApplication {
291282

spring-cloud-gateway-proxyexchange-webmvc/src/test/java/org/springframework/cloud/gateway/mvc/ProductionConfigurationTests.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@
2626
import org.junit.jupiter.api.BeforeEach;
2727
import org.junit.jupiter.api.Disabled;
2828
import org.junit.jupiter.api.Test;
29-
import org.junit.jupiter.api.extension.ExtendWith;
3029

3130
import org.springframework.beans.factory.annotation.Autowired;
3231
import org.springframework.boot.autoconfigure.SpringBootApplication;
3332
import org.springframework.boot.test.context.SpringBootTest;
3433
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
35-
import org.springframework.boot.test.system.CapturedOutput;
36-
import org.springframework.boot.test.system.OutputCaptureExtension;
3734
import org.springframework.boot.web.server.test.LocalServerPort;
3835
import org.springframework.boot.web.server.test.client.TestRestTemplate;
3936
import org.springframework.cloud.gateway.mvc.ProductionConfigurationTests.TestApplication;
@@ -63,7 +60,6 @@
6360

6461
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
6562
@ContextConfiguration(classes = TestApplication.class)
66-
@ExtendWith(OutputCaptureExtension.class)
6763
public class ProductionConfigurationTests {
6864

6965
@Autowired
@@ -334,11 +330,6 @@ public void forwardedHeaderUsesHost() {
334330
assertThat(headers.get("forwarded").get(0)).isEqualTo("host=localhost:" + port);
335331
}
336332

337-
@Test
338-
void logsArtifactDeprecatedWarning(CapturedOutput output) {
339-
assertThat(output).contains("spring-cloud-gateway-mvc is deprecated");
340-
}
341-
342333
@SpringBootApplication
343334
static class TestApplication {
344335

0 commit comments

Comments
 (0)