Browse Source

Align test with change to exception in latest Framework snapshots

pull/16224/head
Andy Wilkinson 7 years ago
parent
commit
ae3ea186e2
  1. 4
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java

4
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java

@ -185,9 +185,9 @@ public class SpringApplicationTests { @@ -185,9 +185,9 @@ public class SpringApplicationTests {
@Test
public void sourcesMustBeAccessible() {
assertThatIllegalStateException().isThrownBy(
assertThatIllegalArgumentException().isThrownBy(
() -> new SpringApplication(InaccessibleConfiguration.class).run())
.withMessageContaining("Cannot load configuration");
.withMessageContaining("No visible constructors");
}
@Test

Loading…
Cancel
Save