|
|
|
|
@ -253,7 +253,7 @@ class SpringApplicationTests {
@@ -253,7 +253,7 @@ class SpringApplicationTests {
|
|
|
|
|
SpringApplication application = new SpringApplication(ExampleConfig.class); |
|
|
|
|
application.setWebApplicationType(WebApplicationType.NONE); |
|
|
|
|
this.context = application.run(); |
|
|
|
|
assertThat(output).contains("No active profile set, falling back to default profiles: default"); |
|
|
|
|
assertThat(output).contains("No active profile set, falling back to 1 default profile(s): \"default\""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@ -261,7 +261,7 @@ class SpringApplicationTests {
@@ -261,7 +261,7 @@ class SpringApplicationTests {
|
|
|
|
|
SpringApplication application = new SpringApplication(ExampleConfig.class); |
|
|
|
|
application.setWebApplicationType(WebApplicationType.NONE); |
|
|
|
|
this.context = application.run("--spring.profiles.active=myprofiles"); |
|
|
|
|
assertThat(output).contains("The following profiles are active: myprofile"); |
|
|
|
|
assertThat(output).contains("The following 1 profile(s) are active: \"myprofiles\""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@ -273,6 +273,15 @@ class SpringApplicationTests {
@@ -273,6 +273,15 @@ class SpringApplicationTests {
|
|
|
|
|
assertThat(output).contains("o.s.b.SpringApplication"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void logsMultipleActiveProfilesWithComma(CapturedOutput output) { |
|
|
|
|
SpringApplication application = new SpringApplication(ExampleConfig.class); |
|
|
|
|
application.setWebApplicationType(WebApplicationType.NONE); |
|
|
|
|
application.setAdditionalProfiles("p1,p2", "p3"); |
|
|
|
|
application.run(); |
|
|
|
|
assertThat(output).contains("The following 2 profile(s) are active: \"p1,p2\",\"p3\""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void setIgnoreBeanInfoPropertyByDefault(CapturedOutput output) { |
|
|
|
|
SpringApplication application = new SpringApplication(ExampleConfig.class); |
|
|
|
|
|