nastra commented on code in PR #12820:
URL: https://github.com/apache/iceberg/pull/12820#discussion_r2048280972
##########
site/docs/contribute.md:
##########
@@ -499,6 +499,18 @@ assertThat(metadataFileLocations).isNotNull().hasSize(4);
assertThat(metadataFileLocations).isNotNull().hasSameSizeAs(expected).hasSize(4);
```
```java
+// if the specific element doesn't match the value, it won't show the content
and its index of array
+assertThat(array).hasSize(2);
+assertThat(array[0]).isEqualTo("value0");
+assertThat(array[1]).isEqualTo("value1");
+
+// better: all checks can be combined and the content of the array will be
shown if any check fails
+assertThat(array).containsExactly("value0", "value1");
Review Comment:
```suggestion
assertThat(array).hasSize(2).containsExactly("value0", "value1");
```
--
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]