snuyanzin commented on code in PR #27473:
URL: https://github.com/apache/flink/pull/27473#discussion_r2728936575
##########
flink-tests-java17/src/test/java/org/apache/flink/api/java/typeutils/runtime/RecordBuilderFactoryTest.java:
##########
@@ -107,6 +107,6 @@ void testMissingRequiredField() {
assertThatThrownBy(builder::build)
.hasMessage("Could not instantiate record")
- .hasCause(new IllegalArgumentException());
+ .hasCauseInstanceOf(IllegalArgumentException.class);
Review Comment:
in 21 it has same class however different args
was not caught since never tested
--
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]