onApplicationEventWhenApplicationFailedEventSwitchesLogs() — spring-boot Function Reference
Architecture documentation for the onApplicationEventWhenApplicationFailedEventSwitchesLogs() function in EnvironmentPostProcessorApplicationListenerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 74bb13be_5ca9_b6e8_98c8_6888c1cf0560["onApplicationEventWhenApplicationFailedEventSwitchesLogs()"] ac439095_7410_bf40_2e58_979d7110817a["ApplicationFailedEvent()"] 74bb13be_5ca9_b6e8_98c8_6888c1cf0560 -->|calls| ac439095_7410_bf40_2e58_979d7110817a 8c4757c3_25d9_25d6_91cc_5f9f3f8ef50d["onApplicationEvent()"] 74bb13be_5ca9_b6e8_98c8_6888c1cf0560 -->|calls| 8c4757c3_25d9_25d6_91cc_5f9f3f8ef50d e11ba548_51f3_397c_2672_4830f3c28c20["switchOverAll()"] 74bb13be_5ca9_b6e8_98c8_6888c1cf0560 -->|calls| e11ba548_51f3_397c_2672_4830f3c28c20 style 74bb13be_5ca9_b6e8_98c8_6888c1cf0560 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListenerTests.java lines 162–170
@Test
void onApplicationEventWhenApplicationFailedEventSwitchesLogs() {
SpringApplication application = mock(SpringApplication.class);
ConfigurableApplicationContext context = mock(ConfigurableApplicationContext.class);
ApplicationFailedEvent event = new ApplicationFailedEvent(application, new String[0], context,
new RuntimeException());
this.listener.onApplicationEvent(event);
then(this.deferredLogs).should().switchOverAll();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does onApplicationEventWhenApplicationFailedEventSwitchesLogs() do?
onApplicationEventWhenApplicationFailedEventSwitchesLogs() is a function in the spring-boot codebase.
What does onApplicationEventWhenApplicationFailedEventSwitchesLogs() call?
onApplicationEventWhenApplicationFailedEventSwitchesLogs() calls 3 function(s): ApplicationFailedEvent, onApplicationEvent, switchOverAll.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free