tomtongue commented on code in PR #9849: URL: https://github.com/apache/iceberg/pull/9849#discussion_r1512160426
########## core/src/test/java/org/apache/iceberg/TestMetadataTableScans.java: ########## @@ -356,14 +353,14 @@ public void testPartitionsTableScanNoFilter() { Types.StructType.of(optional(1000, "data_bucket", Types.IntegerType.get())))) .asStruct(); TableScan scanNoFilter = partitionsTable.newScan().select("partition.data_bucket"); - Assert.assertEquals(expected, scanNoFilter.schema().asStruct()); + assertThat(scanNoFilter.schema().asStruct()).isEqualTo(expected); CloseableIterable<ManifestEntry<?>> entries = PartitionsTable.planEntries((StaticTableScan) scanNoFilter); if (formatVersion == 2) { - Assert.assertEquals(8, Iterators.size(entries.iterator())); + assertThat(entries.iterator()).toIterable().hasSize(8); Review Comment: This and other parts can be `assertThat(entries).hasSize(x)`. Will replace them. -- 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