Search in sources :

Example 1 with ConfigurablePropertyResolver

use of org.springframework.core.env.ConfigurablePropertyResolver in project spring-boot by spring-projects.

the class AbstractApplicationEnvironmentTests method propertyResolverIsOptimizedForConfigurationProperties.

@Test
void propertyResolverIsOptimizedForConfigurationProperties() {
    StandardEnvironment environment = createEnvironment();
    ConfigurablePropertyResolver expected = ConfigurationPropertySources.createPropertyResolver(new MutablePropertySources());
    assertThat(environment).extracting("propertyResolver").hasSameClassAs(expected);
}
Also used : ConfigurablePropertyResolver(org.springframework.core.env.ConfigurablePropertyResolver) MutablePropertySources(org.springframework.core.env.MutablePropertySources) StandardEnvironment(org.springframework.core.env.StandardEnvironment) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 ConfigurablePropertyResolver (org.springframework.core.env.ConfigurablePropertyResolver)1 MutablePropertySources (org.springframework.core.env.MutablePropertySources)1 StandardEnvironment (org.springframework.core.env.StandardEnvironment)1