@@ -253,15 +253,15 @@ void logsNoActiveProfiles(CapturedOutput output) {
253
253
SpringApplication application = new SpringApplication (ExampleConfig .class );
254
254
application .setWebApplicationType (WebApplicationType .NONE );
255
255
this .context = application .run ();
256
- assertThat (output ).contains ("No active profile set, falling back to default profiles: default" );
256
+ assertThat (output ).contains ("No active profile set, falling back to 1 default profile(s): \" default\" " );
257
257
}
258
258
259
259
@ Test
260
260
void logsActiveProfiles (CapturedOutput output ) {
261
261
SpringApplication application = new SpringApplication (ExampleConfig .class );
262
262
application .setWebApplicationType (WebApplicationType .NONE );
263
263
this .context = application .run ("--spring.profiles.active=myprofiles" );
264
- assertThat (output ).contains ("The following profiles are active: myprofile " );
264
+ assertThat (output ).contains ("The following 1 profile(s) are active: \" myprofiles \" " );
265
265
}
266
266
267
267
@ Test
@@ -273,6 +273,15 @@ void enableBannerInLogViaProperty(CapturedOutput output) {
273
273
assertThat (output ).contains ("o.s.b.SpringApplication" );
274
274
}
275
275
276
+ @ Test
277
+ void logsMultipleActiveProfilesWithComma (CapturedOutput output ) {
278
+ SpringApplication application = new SpringApplication (ExampleConfig .class );
279
+ application .setWebApplicationType (WebApplicationType .NONE );
280
+ application .setAdditionalProfiles ("p1,p2" , "p3" );
281
+ application .run ();
282
+ assertThat (output ).contains ("The following 2 profile(s) are active: \" p1,p2\" ,\" p3\" " );
283
+ }
284
+
276
285
@ Test
277
286
void setIgnoreBeanInfoPropertyByDefault (CapturedOutput output ) {
278
287
SpringApplication application = new SpringApplication (ExampleConfig .class );
0 commit comments