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

onApplicationEventWhenApplicationPreparedEventSwitchesLogs() — spring-boot Function Reference

Architecture documentation for the onApplicationEventWhenApplicationPreparedEventSwitchesLogs() function in EnvironmentPostProcessorApplicationListenerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  e775247a_9016_b82a_5908_5487d55185f3["onApplicationEventWhenApplicationPreparedEventSwitchesLogs()"]
  c972cd03_a5b3_1de0_1f2c_fe5ae8a29fa9["ApplicationPreparedEvent()"]
  e775247a_9016_b82a_5908_5487d55185f3 -->|calls| c972cd03_a5b3_1de0_1f2c_fe5ae8a29fa9
  8c4757c3_25d9_25d6_91cc_5f9f3f8ef50d["onApplicationEvent()"]
  e775247a_9016_b82a_5908_5487d55185f3 -->|calls| 8c4757c3_25d9_25d6_91cc_5f9f3f8ef50d
  e11ba548_51f3_397c_2672_4830f3c28c20["switchOverAll()"]
  e775247a_9016_b82a_5908_5487d55185f3 -->|calls| e11ba548_51f3_397c_2672_4830f3c28c20
  style e775247a_9016_b82a_5908_5487d55185f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListenerTests.java lines 153–160

		@Test
		void onApplicationEventWhenApplicationPreparedEventSwitchesLogs() {
			SpringApplication application = mock(SpringApplication.class);
			ConfigurableApplicationContext context = mock(ConfigurableApplicationContext.class);
			ApplicationPreparedEvent event = new ApplicationPreparedEvent(application, new String[0], context);
			this.listener.onApplicationEvent(event);
			then(this.deferredLogs).should().switchOverAll();
		}

Domain

Subdomains

Frequently Asked Questions

What does onApplicationEventWhenApplicationPreparedEventSwitchesLogs() do?
onApplicationEventWhenApplicationPreparedEventSwitchesLogs() is a function in the spring-boot codebase.
What does onApplicationEventWhenApplicationPreparedEventSwitchesLogs() call?
onApplicationEventWhenApplicationPreparedEventSwitchesLogs() calls 3 function(s): ApplicationPreparedEvent, onApplicationEvent, switchOverAll.

Analyze Your Own Codebase

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

Try Supermodel Free