Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Nov 3, 2023
1 parent 6b23591 commit 56d4f52
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,8 @@ public void testOrderOfRefreshByGroup() {
.expectBodyList(Map.class).consumeWith(result -> {
List<Map> responseBody = result.getResponseBody();

List ids = responseBody.stream()
.map(route -> route.get("route_id"))
.filter(id -> id.equals(routeId1) || id.equals(routeId2))
.collect(Collectors.toList());
List ids = responseBody.stream().map(route -> route.get("route_id"))
.filter(id -> id.equals(routeId1) || id.equals(routeId2)).collect(Collectors.toList());
assertThat(ids).containsExactly(routeId2, routeId1);
});

Expand All @@ -242,10 +240,8 @@ public void testOrderOfRefreshByGroup() {
testClient.get().uri("http://localhost:" + port + "/actuator/gateway/routes").exchange().expectStatus().isOk()
.expectBodyList(Map.class).consumeWith(result -> {
List<Map> responseBody = result.getResponseBody();
List ids = responseBody.stream()
.map(route -> route.get("route_id"))
.filter(id -> id.equals(routeId1) || id.equals(routeId2))
.collect(Collectors.toList());
List ids = responseBody.stream().map(route -> route.get("route_id"))
.filter(id -> id.equals(routeId1) || id.equals(routeId2)).collect(Collectors.toList());
assertThat(ids).containsExactly(routeId1, routeId2);
});
}
Expand Down

0 comments on commit 56d4f52

Please sign in to comment.