Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhrathod01 committed May 9, 2024
1 parent 629f44a commit ea10b7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static void setUp() throws ExecutionException, InterruptedException, Pars
.add(Map.of("n", 10, "name", "Alvin Zimmerman", "firm", "Facebook", "age", 24))
.get();
paginationCol
.add(Map.of("n", 11, "name", "Israel Broc", "firm", "Microsoft", "age", 26))
.add(Map.of("n", 11, "name", "Israel Broc", "firm", "Microsoft", "age", 27))
.get();
paginationCol
.add(Map.of("n", 12, "name", "Larry Frazie", "firm", "Netflix", "age", 30))
Expand Down Expand Up @@ -1398,7 +1398,7 @@ public void testPaginationWithWhereConditional() {
// assert the where clause result
final List<Object> names =
firstResults.stream().map(d -> d.get("name")).collect(Collectors.toList());
assertEquals(List.of("Alvin Zimmerman", "Israel Broc", "Meghan Steele", "Eunice Hines"), names);
assertEquals(List.of("Alvin Zimmerman", "Meghan Steele", "Israel Broc", "Eunice Hines"), names);

List<Map<String, Object>> secondResults = (List) secondPageResult.getBody();
assertEquals(4, secondResults.size());
Expand Down

0 comments on commit ea10b7b

Please sign in to comment.