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


##########
core/src/test/java/org/apache/iceberg/util/TestStructLikeMap.java:
##########
@@ -120,29 +120,28 @@ public void testRemove() {
 
     Map<StructLike, String> map = StructLikeMap.create(STRUCT_TYPE);
     map.put(record, "1-aaa");
-    Assert.assertEquals(1, map.size());
-    Assert.assertEquals("1-aaa", map.get(record));
-    Assert.assertEquals("1-aaa", map.remove(record));
-    Assert.assertEquals(0, map.size());
+    assertThat(map.size()).isOne();
+    assertThat(map).containsEntry(record, "1-aaa");

Review Comment:
   `assertThat(map).hasSize(1).containsEntry(...)` and then you can remove the 
check 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: [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]

Reply via email to