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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]