Skip to content

Commit

Permalink
Print users on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Sep 4, 2023
1 parent 8f2edeb commit f68f996
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions slick/src/test/java/docs/javadsl/SlickTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,17 @@ private void assertEqualsUsers() throws Exception {
final Set<User> foundUsers =
new HashSet<>(foundUsersFuture.toCompletableFuture().get(3, TimeUnit.SECONDS));

if (!foundUsers.equals(users)) {
System.out.println("=== users is ===");
users.forEach(user ->
System.out.println("id: " + user.id + " name: " + user.name)
);
System.out.println("=== foundUsers is ===");
foundUsers.forEach(user ->
System.out.println("id: " + user.id + " name: " + user.name)
);
}

assertEquals(foundUsers, users);
}

Expand Down

0 comments on commit f68f996

Please sign in to comment.