nastra commented on code in PR #9129: URL: https://github.com/apache/iceberg/pull/9129#discussion_r1404009911
########## spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/SparkTestHelperBase.java: ########## @@ -55,12 +55,15 @@ private Object[] toJava(Row row) { protected void assertEquals( String context, List<Object[]> expectedRows, List<Object[]> actualRows) { - Assert.assertEquals( - context + ": number of results should match", expectedRows.size(), actualRows.size()); + Assertions.assertThat(actualRows.size()) Review Comment: it's better to have ``` Assertions.assertThat(actualRows) .as(context + ": number of results should match") .hasSameSizeAs(expectedRows); ``` because this will show the content when the assertion ever fails -- 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...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org