Home / Function/ closingContextCleansUpLoggingSystem() — spring-boot Function Reference

closingContextCleansUpLoggingSystem() — spring-boot Function Reference

Architecture documentation for the closingContextCleansUpLoggingSystem() function in LoggingApplicationListenerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  97a6f4f1_e0bd_ef45_5481_f21fe3646032["closingContextCleansUpLoggingSystem()"]
  b21aabff_7677_28df_125a_1805aeda834e["multicastEvent()"]
  97a6f4f1_e0bd_ef45_5481_f21fe3646032 -->|calls| b21aabff_7677_28df_125a_1805aeda834e
  be3bab95_2d77_cc83_e74d_439204d631d0["ApplicationStartingEvent()"]
  97a6f4f1_e0bd_ef45_5481_f21fe3646032 -->|calls| be3bab95_2d77_cc83_e74d_439204d631d0
  5442b6c9_c948_65c9_3b32_df1993add6a2["getName()"]
  97a6f4f1_e0bd_ef45_5481_f21fe3646032 -->|calls| 5442b6c9_c948_65c9_3b32_df1993add6a2
  style 97a6f4f1_e0bd_ef45_5481_f21fe3646032 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java lines 467–477

	@Test
	void closingContextCleansUpLoggingSystem() {
		System.setProperty(LoggingSystem.SYSTEM_PROPERTY, TestCleanupLoggingSystem.class.getName());
		multicastEvent(new ApplicationStartingEvent(this.bootstrapContext, this.springApplication, new String[0]));
		TestCleanupLoggingSystem loggingSystem = (TestCleanupLoggingSystem) ReflectionTestUtils.getField(this.listener,
				"loggingSystem");
		assertThat(loggingSystem).isNotNull();
		assertThat(loggingSystem.cleanedUp).isFalse();
		multicastEvent(new ContextClosedEvent(this.context));
		assertThat(loggingSystem.cleanedUp).isTrue();
	}

Domain

Subdomains

Frequently Asked Questions

What does closingContextCleansUpLoggingSystem() do?
closingContextCleansUpLoggingSystem() is a function in the spring-boot codebase.
What does closingContextCleansUpLoggingSystem() call?
closingContextCleansUpLoggingSystem() calls 3 function(s): ApplicationStartingEvent, getName, multicastEvent.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free