use of cn.taketoday.core.env.ConfigurablePropertyResolver in project today-framework by TAKETODAY.
the class AbstractApplicationEnvironmentTests method propertyResolverIsOptimizedForConfigurationProperties.
@Test
void propertyResolverIsOptimizedForConfigurationProperties() {
StandardEnvironment environment = createEnvironment();
ConfigurablePropertyResolver expected = ConfigurationPropertySources.createPropertyResolver(new PropertySources());
Object propertyResolver = BeanWrapper.forDirectFieldAccess(environment).getPropertyValue("propertyResolver");
assertThat(propertyResolver).isInstanceOf(expected.getClass());
}
use of cn.taketoday.core.env.ConfigurablePropertyResolver in project today-infrastructure by TAKETODAY.
the class AbstractApplicationEnvironmentTests method propertyResolverIsOptimizedForConfigurationProperties.
@Test
void propertyResolverIsOptimizedForConfigurationProperties() {
StandardEnvironment environment = createEnvironment();
ConfigurablePropertyResolver expected = ConfigurationPropertySources.createPropertyResolver(new PropertySources());
Object propertyResolver = BeanWrapper.forDirectFieldAccess(environment).getPropertyValue("propertyResolver");
assertThat(propertyResolver).isInstanceOf(expected.getClass());
}
Aggregations