Skip to content

Commit 04c8400

Browse files
committed
Polishing.
Simplify assertions. See #3125
1 parent 62d234f commit 04c8400

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/test/java/org/springframework/data/repository/core/support/QueryExecutionResultHandlerUnitTests.java

+2-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import java.util.Set;
3737
import java.util.stream.Collectors;
3838

39-
import org.assertj.core.api.SoftAssertions;
4039
import org.junit.jupiter.api.Test;
4140
import org.reactivestreams.Publisher;
4241

@@ -396,12 +395,8 @@ void nestedConversion() throws Exception {
396395

397396
assertThat(result).isInstanceOfSatisfying(List.class, list -> {
398397

399-
SoftAssertions.assertSoftly(s -> {
400-
401-
// for making the test failure more obvious:
402-
s.assertThat(list).allMatch(it -> Integer.class.isInstance(it));
403-
s.assertThat(list).containsExactly(0, 1);
404-
});
398+
// for making the test failure more obvious:
399+
assertThat(list).allMatch(Integer.class::isInstance).containsExactly(0, 1);
405400
});
406401
}
407402

0 commit comments

Comments
 (0)