Skip to content

Commit

Permalink
Make test passing in Idea
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-costigliola committed Jan 7, 2018
1 parent 4021b26 commit 37000b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/java/org/assertj/core/api/SoftAssertionsTest.java
Expand Up @@ -856,7 +856,7 @@ public void should_return_failure_after_shouldHaveThrown() {
softly.shouldHaveThrown(IllegalArgumentException.class);
assertThat(softly.wasSuccess()).isFalse();
assertThat(softly.errorsCollected()).hasSize(1);
assertThat(softly.errorsCollected().get(0)).hasMessage("IllegalArgumentException should have been thrown");
assertThat(softly.errorsCollected().get(0)).hasMessageStartingWith("IllegalArgumentException should have been thrown");
}

@Test
Expand Down Expand Up @@ -893,8 +893,9 @@ public void name() {
data.put("two", "2");
data.put("three", "3");
try (final AutoCloseableSoftAssertions softly = new AutoCloseableSoftAssertions()) {
// softly.assertThat(data).containsExactly(entry("one", "2"));
softly.assertThat(data).extracting("one", "two");
softly.assertThat(data)
.extracting("one", "two")
.containsExactly("1", "2");
}
}
}

0 comments on commit 37000b9

Please sign in to comment.