Browse Source

Asserts headers are not null.

pull/3096/head
sgibb 12 months ago
parent
commit
e9cfe1df35
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 1
      spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/test/TestUtils.java

1
spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/test/TestUtils.java

@ -27,6 +27,7 @@ public class TestUtils { @@ -27,6 +27,7 @@ public class TestUtils {
public static Map<String, Object> getMap(Map<String, Object> map, String mapKey) {
assertThat(map).isNotEmpty().containsKey(mapKey);
Map<String, Object> headers = (Map<String, Object>) map.get(mapKey);
assertThat(headers).isNotNull();
Map<String, Object> newHeaders = new HashMap<>();
// flatten map as mccutchen/go-httpbin only gets lists

Loading…
Cancel
Save