SpringBootPropertySourceTests Class — spring-boot Architecture
Architecture documentation for the SpringBootPropertySourceTests class in SpringBootPropertySourceTests.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/SpringBootPropertySourceTests.java lines 36–53
@ClassPathExclusions({ "jakarta.servlet-api-*.jar", "tomcat-embed-core-*.jar" })
class SpringBootPropertySourceTests {
@Test
void propertySourceHasDisabledShutdownHook() {
// Log4j2 disables the hook automatically in a web app so we check that it doesn't
// think it's in one
assertThat(Constants.IS_WEB_APP).isFalse();
assertThat(((ShutdownCallbackRegistry) LogManager.getFactory()).addShutdownCallback(() -> {
})).isNull();
}
@Test
void allDefaultMethodsAreImplemented() {
assertThat(Stream.of(SpringBootPropertySource.class.getMethods()).filter(Method::isDefault)).isEmpty();
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free