slinkydeveloper commented on a change in pull request #19185:
URL: https://github.com/apache/flink/pull/19185#discussion_r837401127
##########
File path:
flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/core/testutils/FlinkAssertions.java
##########
@@ -60,32 +60,13 @@ private FlinkAssertions() {}
.anySatisfy(
cause ->
assertThat(cause)
+ .as(
+ "Any cause is instance
of class '%s' and contains message '%s'",
+ clazz, containsMessage)
Review comment:
It makes easier in general to understand the error message, as without
this, you'll see just "assert that set of exceptions [...] satisfies" but
without really telling what it satisfies, and what this set comes from. Just
found out after a debugging session that adding this `as` makes nicer the output
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]