commit
eb307b91ec
|
@ -106,7 +106,7 @@ public class Profiles implements Iterable<String> {
|
|||
? Collections.emptySet()
|
||||
: StringUtils.commaDelimitedListToSet(StringUtils.trimAllWhitespace(environmentPropertyValue));
|
||||
validator.validate(environmentPropertyProfiles,
|
||||
() -> "Invalid profile property value found in Envronment under '%s'".formatted(type.getName()));
|
||||
() -> "Invalid profile property value found in Environment under '%s'".formatted(type.getName()));
|
||||
Set<String> environmentProfiles = new LinkedHashSet<>(Arrays.asList(type.get(environment)));
|
||||
BindResult<Set<String>> boundProfiles = binder.bind(type.getName(), STRING_SET, validator);
|
||||
if (hasProgrammaticallySetProfiles(type, environmentPropertyValue, environmentPropertyProfiles,
|
||||
|
|
|
@ -453,7 +453,7 @@ class ProfilesTests {
|
|||
environment.setProperty("spring.profiles.active", "fa!l");
|
||||
Binder binder = new Binder();
|
||||
assertThatIllegalStateException().isThrownBy(() -> new Profiles(environment, binder, null))
|
||||
.withMessage("Invalid profile property value found in Envronment under 'spring.profiles.active'");
|
||||
.withMessage("Invalid profile property value found in Environment under 'spring.profiles.active'");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue