@ -1,5 +1,5 @@
/ *
/ *
* Copyright 2012 - 2024 the original author or authors .
* Copyright 2012 - 2025 the original author or authors .
*
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
* you may not use this file except in compliance with the License .
@ -200,6 +200,17 @@ class ConfigDataPropertiesTests {
assertThat ( properties . isActive ( context ) ) . isFalse ( ) ;
assertThat ( properties . isActive ( context ) ) . isFalse ( ) ;
}
}
@Test
void isActiveAgainstBoundDataWhenProfilesMatchCommaSeparatedList ( ) {
MapConfigurationPropertySource source = new MapConfigurationPropertySource ( ) ;
source . put ( "spring.config.activate.on-profile" , "a&b,nonexistent" ) ;
Binder binder = new Binder ( source ) ;
ConfigDataProperties properties = ConfigDataProperties . get ( binder ) ;
ConfigDataActivationContext context = new ConfigDataActivationContext ( NULL_CLOUD_PLATFORM ,
createTestProfiles ( ) ) ;
assertThat ( properties . isActive ( context ) ) . isTrue ( ) ;
}
@Test
@Test
void getImportOriginWhenCommaListReturnsOrigin ( ) {
void getImportOriginWhenCommaListReturnsOrigin ( ) {
MapConfigurationPropertySource source = new MapConfigurationPropertySource ( ) ;
MapConfigurationPropertySource source = new MapConfigurationPropertySource ( ) ;