RocMarshal commented on code in PR #20715: URL: https://github.com/apache/flink/pull/20715#discussion_r962107812
########## flink-java/src/test/java/org/apache/flink/api/java/operator/MaxByOperatorTest.java: ########## @@ -65,75 +67,76 @@ public void testMaxByKeyFieldsDataset() { try { tupleDs.maxBy(4, 0, 1, 2, 3); } catch (Exception e) { - Assert.fail(); + fail(null); Review Comment: Maybe the null would be ```e.getMassage()```. It'll be in assertThatThrownBy format coding. ########## flink-java/src/test/java/org/apache/flink/api/java/operator/MaxByOperatorTest.java: ########## @@ -65,75 +67,76 @@ public void testMaxByKeyFieldsDataset() { try { tupleDs.maxBy(4, 0, 1, 2, 3); } catch (Exception e) { - Assert.fail(); + fail(null); Review Comment: Maybe the null would be ```e.getMassage()```. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org