Browse Source

Updates null check

pull/1464/head
Spencer Gibb 5 years ago
parent
commit
6a9c64b635
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/HystrixGatewayFilterFactoryTests.java
  2. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SpringCloudCircuitBreakerFilterFactoryTests.java

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/HystrixGatewayFilterFactoryTests.java

@ -127,7 +127,7 @@ public class HystrixGatewayFilterFactoryTests extends BaseWebClientTests { @@ -127,7 +127,7 @@ public class HystrixGatewayFilterFactoryTests extends BaseWebClientTests {
testClient.get().uri("/delay/3").header("Host", "www.hystrixconnectfail.org")
.accept(TEXT_HTML).exchange().expectStatus().is5xxServerError()
.expectBody().consumeWith(res -> {
assertThat(res).isNotNull();
assertThat(res.getResponseBody()).isNotNull();
String body = new String(res.getResponseBody(), UTF_8);
assertThat(body).as(

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SpringCloudCircuitBreakerFilterFactoryTests.java

@ -95,7 +95,7 @@ public abstract class SpringCloudCircuitBreakerFilterFactoryTests @@ -95,7 +95,7 @@ public abstract class SpringCloudCircuitBreakerFilterFactoryTests
.header("Host", "www.circuitbreakerconnectfail.org").accept(TEXT_HTML)
.exchange().expectStatus().is5xxServerError().expectBody()
.consumeWith(res -> {
assertThat(res).isNotNull();
assertThat(res.getResponseBody()).isNotNull();
String body = new String(res.getResponseBody(), UTF_8);
assertThat(body).as(

Loading…
Cancel
Save