Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Simplify assertions.

See #3125
  • Loading branch information
mp911de committed Jul 23, 2024
1 parent 8a8c92e commit 3dd3932
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.util.Set;
import java.util.stream.Collectors;

import org.assertj.core.api.SoftAssertions;
import org.junit.jupiter.api.Test;
import org.reactivestreams.Publisher;

Expand Down Expand Up @@ -396,12 +395,8 @@ void nestedConversion() throws Exception {

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

SoftAssertions.assertSoftly(s -> {

// for making the test failure more obvious:
s.assertThat(list).allMatch(it -> Integer.class.isInstance(it));
s.assertThat(list).containsExactly(0, 1);
});
// for making the test failure more obvious:
assertThat(list).allMatch(Integer.class::isInstance).containsExactly(0, 1);
});
}

Expand Down

0 comments on commit 3dd3932

Please sign in to comment.