afedulov commented on code in PR #19660:
URL: https://github.com/apache/flink/pull/19660#discussion_r874931314
##########
flink-connectors/flink-connector-hive/src/test/java/org/apache/flink/connectors/hive/HiveTableSinkITCase.java:
##########
@@ -437,12 +431,12 @@ public void testCustomPartitionCommitPolicyNotFound() {
testStreamingWriteWithCustomPartitionCommitPolicy(customCommitPolicyClassName);
fail("ExecutionException expected");
} catch (Exception e) {
- assertTrue(
- ExceptionUtils.findThrowableWithMessage(
+ assertThat(
Review Comment:
We could use `hasStackTraceContaining` in the following check to avoid the
complex `satisfies` logic.
--
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]