From db83a80deb46fa78d0e29df00bebe38930ca9159 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 10 Jan 2018 14:12:06 +0000 Subject: [PATCH] Correct test expectations following changes to application context ID See gh-11023 --- .../SpringBootTestContextBootstrapperIntegrationTests.java | 2 +- ...ootTestContextBootstrapperWithContextConfigurationTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/bootstrap/SpringBootTestContextBootstrapperIntegrationTests.java b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/bootstrap/SpringBootTestContextBootstrapperIntegrationTests.java index 32d144a5cb..338267df92 100644 --- a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/bootstrap/SpringBootTestContextBootstrapperIntegrationTests.java +++ b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/bootstrap/SpringBootTestContextBootstrapperIntegrationTests.java @@ -54,7 +54,7 @@ public class SpringBootTestContextBootstrapperIntegrationTests { @Test public void contextWasCreatedViaSpringApplication() { - assertThat(this.context.getId()).startsWith("application:"); + assertThat(this.context.getId()).startsWith("application"); } @Test diff --git a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/bootstrap/SpringBootTestContextBootstrapperWithContextConfigurationTests.java b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/bootstrap/SpringBootTestContextBootstrapperWithContextConfigurationTests.java index b04e59949f..80475ca2ff 100644 --- a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/bootstrap/SpringBootTestContextBootstrapperWithContextConfigurationTests.java +++ b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/bootstrap/SpringBootTestContextBootstrapperWithContextConfigurationTests.java @@ -52,7 +52,7 @@ public class SpringBootTestContextBootstrapperWithContextConfigurationTests { @Test public void contextWasCreatedViaSpringApplication() { - assertThat(this.context.getId()).startsWith("application:"); + assertThat(this.context.getId()).startsWith("application"); } }