zentol commented on a change in pull request #19185:
URL: https://github.com/apache/flink/pull/19185#discussion_r838524469



##########
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 would still be better to set this at `assertThatChainOfCauses` 
because then the message is printed as part of the first line.
   I have to say though that the assertj behavior here is pretty disappointing; 
it doesn't even document all assertions on it's own...




-- 
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]


Reply via email to