ConfigurationPropertySourceTests Class — spring-boot Architecture
Architecture documentation for the ConfigurationPropertySourceTests class in ConfigurationPropertySourceTests.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourceTests.java lines 31–50
class ConfigurationPropertySourceTests {
@Test
void fromCreatesConfigurationPropertySourcesPropertySource() {
MockPropertySource source = new MockPropertySource();
source.setProperty("spring", "boot");
ConfigurationPropertySource adapted = ConfigurationPropertySource.from(source);
assertThat(adapted).isNotNull();
ConfigurationProperty spring = adapted.getConfigurationProperty(ConfigurationPropertyName.of("spring"));
assertThat(spring).isNotNull();
assertThat(spring.getValue()).isEqualTo("boot");
}
@Test
void fromWhenSourceIsAlreadyConfigurationPropertySourcesPropertySourceReturnsNull() {
ConfigurationPropertySourcesPropertySource source = mock(ConfigurationPropertySourcesPropertySource.class);
assertThat(ConfigurationPropertySource.from(source)).isNull();
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free