initializationIsOnlyPerformedOnceUntilCleanedUp() — spring-boot Function Reference
Architecture documentation for the initializationIsOnlyPerformedOnceUntilCleanedUp() function in LogbackLoggingSystemTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 10f69de3_2912_4ab8_edc8_b8a8b9bca3f7["initializationIsOnlyPerformedOnceUntilCleanedUp()"] 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"] 10f69de3_2912_4ab8_edc8_b8a8b9bca3f7 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38 fdbd1b73_3c9a_1ec8_2ac3_04f41fb0df51["cleanUp()"] 10f69de3_2912_4ab8_edc8_b8a8b9bca3f7 -->|calls| fdbd1b73_3c9a_1ec8_2ac3_04f41fb0df51 501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"] 10f69de3_2912_4ab8_edc8_b8a8b9bca3f7 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264 style 10f69de3_2912_4ab8_edc8_b8a8b9bca3f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java lines 594–609
@Test
void initializationIsOnlyPerformedOnceUntilCleanedUp() {
LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
LoggerContextListener listener = mock(LoggerContextListener.class);
loggerContext.addListener(listener);
this.loggingSystem.beforeInitialize();
initialize(this.initializationContext, null, null);
this.loggingSystem.beforeInitialize();
initialize(this.initializationContext, null, null);
then(listener).should().onReset(loggerContext);
this.loggingSystem.cleanUp();
loggerContext.addListener(listener);
this.loggingSystem.beforeInitialize();
initialize(this.initializationContext, null, null);
then(listener).should(times(2)).onReset(loggerContext);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does initializationIsOnlyPerformedOnceUntilCleanedUp() do?
initializationIsOnlyPerformedOnceUntilCleanedUp() is a function in the spring-boot codebase.
What does initializationIsOnlyPerformedOnceUntilCleanedUp() call?
initializationIsOnlyPerformedOnceUntilCleanedUp() calls 3 function(s): beforeInitialize, cleanUp, initialize.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free