Closes gh-10636
This commit is contained in:
Johnny Lim
2017-10-14 01:39:03 +09:00
committed by Stephane Nicoll
parent 0af4536316
commit 5aa32b3d0f
18 changed files with 28 additions and 39 deletions

View File

@@ -74,7 +74,6 @@ public class ApplicationContextAssertTests {
@Test
public void hasBeanWhenNotStartedShouldFail() {
this.thrown.expect(AssertionError.class);
this.thrown.expectMessage("failed to start");
this.thrown.expectMessage(String
.format("but context failed to start:%n java.lang.RuntimeException"));
assertThat(getAssert(this.failure)).hasBean("foo");