nastra commented on code in PR #9129:
URL: https://github.com/apache/iceberg/pull/9129#discussion_r1404012356
##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/actions/TestSparkFileRewriter.java:
##########
@@ -190,9 +189,9 @@ private void
checkDataFileGroupWithTooMuchData(SizeBasedDataRewriter rewriter) {
rewriter.init(options);
Iterable<List<FileScanTask>> groups = rewriter.planFileGroups(tasks);
- Assert.assertEquals("Must have 1 group", 1, Iterables.size(groups));
+ Assertions.assertThat(Iterables.size(groups)).as("Must have 1
group").isEqualTo(1);
List<FileScanTask> group = Iterables.getOnlyElement(groups);
- Assert.assertEquals("Must rewrite big file", 1, group.size());
+ Assertions.assertThat(group.size()).as("Must rewrite big
file").isEqualTo(1);
Review Comment:
please adjust all of these to use
`Assertions.assertThat(groups).as(..).hasSize(1);`
--
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]