Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.20.2</version>
<version>3.21.0</version>
</dependency>
<dependency>
<groupId>io.vavr</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ void should_fail_if_Map_does_not_contain_any_of_entries() {
() -> assertThat(actual).containsAnyOf(ENTRY2)
)
.isInstanceOf(AssertionError.class)
.hasMessage("\nExpecting actual:\n HashMap((key1, value1), (key3, value3))\nto contain at least one of the following elements:\n [(key2, value2)]\nbut none were found ");
.hasMessage("\nExpecting actual:\n HashMap((key1, value1), (key3, value3))\nto contain at least one of the following elements:\n [(key2, value2)]\nbut none were found");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ void should_fail_if_Multimap_does_not_contain_any_of_entries() {
() -> assertThat(actual).containsAnyOf(ENTRY2)
)
.isInstanceOf(AssertionError.class)
.hasMessage("\nExpecting actual:\n HashMultimap[List]((key1, value1), (key3, value3))\nto contain at least one of the following elements:\n [(key2, value2)]\nbut none were found ");
.hasMessage("\nExpecting actual:\n HashMultimap[List]((key1, value1), (key3, value3))\nto contain at least one of the following elements:\n [(key2, value2)]\nbut none were found");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static void verifyErrors(Double evaluatedVal, MultipleFailuresError e) {
assertThat(errors.get(56))
.startsWith(format("java.lang.AssertionError: %nExpecting actual:%n \"Frodo\"%nto start with:%n \"key\""));
assertThat(errors.get(57))
.contains(format("java.lang.AssertionError: %nExpecting actual:%n HashMap((Frodo, Baggins))%nto contain at least one of the following elements:%n [(Bilbo, Baggins)]%nbut none were found "));
.contains(format("java.lang.AssertionError: %nExpecting actual:%n HashMap((Frodo, Baggins))%nto contain at least one of the following elements:%n [(Bilbo, Baggins)]%nbut none were found"));
assertThat(errors.get(58))
.contains(format("java.lang.AssertionError: %nExpecting HashMap:%n HashMap((Frodo, Baggins))%nto contain:%n [(Peregrin, Took)]%nbut could not find the following element(s):%n HashSet((Peregrin, Took))%n"));
assertThat(errors.get(59))
Expand Down Expand Up @@ -211,7 +211,7 @@ static void verifyErrors(Double evaluatedVal, MultipleFailuresError e) {
assertThat(errors.get(83))
.startsWith(format("java.lang.AssertionError: %nExpecting actual:%n \"Frodo\"%nto start with:%n \"key\""));
assertThat(errors.get(84))
.contains(format("java.lang.AssertionError: %nExpecting actual:%n HashMultimap[List]((Frodo, Baggins))%nto contain at least one of the following elements:%n [(Bilbo, Baggins)]%nbut none were found "));
.contains(format("java.lang.AssertionError: %nExpecting actual:%n HashMultimap[List]((Frodo, Baggins))%nto contain at least one of the following elements:%n [(Bilbo, Baggins)]%nbut none were found"));
assertThat(errors.get(85))
.contains(format("java.lang.AssertionError: %nExpecting HashMultimap:%n HashMultimap[List]((Frodo, Baggins))%nto contain:%n [(Peregrin, Took)]%nbut could not find the following element(s):%n HashSet((Peregrin, Took))%n"));
assertThat(errors.get(86))
Expand Down