nastra commented on code in PR #10130:
URL: https://github.com/apache/iceberg/pull/10130#discussion_r1562500825


##########
data/src/test/java/org/apache/iceberg/data/parquet/TestGenericData.java:
##########
@@ -132,12 +132,12 @@ public void testTwoLevelList() throws IOException {
             .createReaderFunc(fileSchema -> 
GenericParquetReaders.buildReader(schema, fileSchema))
             .build()) {
       CloseableIterator it = reader.iterator();
-      Assert.assertTrue("Should have at least one row", it.hasNext());
+      assertThat(it.hasNext()).isTrue();
       while (it.hasNext()) {
         GenericRecord actualRecord = (GenericRecord) it.next();
-        Assert.assertEquals(actualRecord.get(0, ArrayList.class).get(0), 
expectedBinary);
-        Assert.assertEquals(actualRecord.get(1, ByteBuffer.class), 
expectedBinary);
-        Assert.assertFalse("Should not have more than one row", it.hasNext());
+        assertThat(actualRecord.get(0, 
ArrayList.class)).first().isEqualTo(expectedBinary);
+        assertThat(actualRecord.get(1, 
ByteBuffer.class)).isEqualTo(expectedBinary);
+        assertThat(it.hasNext()).isFalse();

Review Comment:
   same as above



-- 
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

Reply via email to