Skip to content

Commit 48612c4

Browse files
committed
Bumping versions
1 parent ee9d6ad commit 48612c4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/actuate/GatewayControllerEndpointTests.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,8 @@ public void testOrderOfRefreshByGroup() {
226226
.expectBodyList(Map.class).consumeWith(result -> {
227227
List<Map> responseBody = result.getResponseBody();
228228

229-
List ids = responseBody.stream()
230-
.map(route -> route.get("route_id"))
231-
.filter(id -> id.equals(routeId1) || id.equals(routeId2))
232-
.collect(Collectors.toList());
229+
List ids = responseBody.stream().map(route -> route.get("route_id"))
230+
.filter(id -> id.equals(routeId1) || id.equals(routeId2)).collect(Collectors.toList());
233231
assertThat(ids).containsExactly(routeId2, routeId1);
234232
});
235233

@@ -242,10 +240,8 @@ public void testOrderOfRefreshByGroup() {
242240
testClient.get().uri("http://localhost:" + port + "/actuator/gateway/routes").exchange().expectStatus().isOk()
243241
.expectBodyList(Map.class).consumeWith(result -> {
244242
List<Map> responseBody = result.getResponseBody();
245-
List ids = responseBody.stream()
246-
.map(route -> route.get("route_id"))
247-
.filter(id -> id.equals(routeId1) || id.equals(routeId2))
248-
.collect(Collectors.toList());
243+
List ids = responseBody.stream().map(route -> route.get("route_id"))
244+
.filter(id -> id.equals(routeId1) || id.equals(routeId2)).collect(Collectors.toList());
249245
assertThat(ids).containsExactly(routeId1, routeId2);
250246
});
251247
}

0 commit comments

Comments
 (0)