nastra commented on code in PR #9849: URL: https://github.com/apache/iceberg/pull/9849#discussion_r1511186311
########## core/src/test/java/org/apache/iceberg/MetadataTableScanTestBase.java: ########## @@ -89,18 +88,16 @@ protected void validatePartition( CloseableIterable<ManifestEntry<? extends ContentFile<?>>> entries, int position, int partitionValue) { - Assert.assertTrue( - "File scan tasks do not include correct file", - StreamSupport.stream(entries.spliterator(), false) - .anyMatch( - entry -> { - StructLike partition = entry.file().partition(); - if (position >= partition.size()) { - return false; - } - - return Objects.equals(partitionValue, partition.get(position, Object.class)); - })); + assertThat(StreamSupport.stream(entries.spliterator(), false)) + .as("File scan tasks do not include correct file") + .anyMatch( + entry -> { + StructLike partition = entry.file().partition(); + if (position >= partition.size()) { + return false; + } Review Comment: nit: please add newline after } -- 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