Skip to content

Commit 16f87e5

Browse files
committed
Add test to allow non-ASCII
1 parent 038de1e commit 16f87e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/StandardConfigDataLocationResolverTests.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,15 @@ void resolveProfileSpecificWhenProfileIsValidShouldNotThrowException() {
303303
.isThrownBy(() -> this.resolver.resolveProfileSpecific(this.context, location, profiles));
304304
}
305305

306+
@Test
307+
void resolveProfileSpecificWithNonAsciiCharactersShouldNotThrowException() {
308+
ConfigDataLocation location = ConfigDataLocation.of("classpath:/configdata/properties/");
309+
this.environment.setActiveProfiles("dev-테스트_123");
310+
Profiles profiles = new Profiles(this.environment, this.environmentBinder, Collections.emptyList());
311+
assertThatNoException()
312+
.isThrownBy(() -> this.resolver.resolveProfileSpecific(this.context, location, profiles));
313+
}
314+
306315
@Test
307316
void resolveProfileSpecificWithAdditionalValidProfilesShouldNotThrowException() {
308317
ConfigDataLocation location = ConfigDataLocation.of("classpath:/configdata/properties/");

0 commit comments

Comments
 (0)