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

verifyRegisteredListenerFailedFromApplicationEvents() — spring-boot Function Reference

Architecture documentation for the verifyRegisteredListenerFailedFromApplicationEvents() function in SpringApplicationTests.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  8a76d892_750c_1f63_9067_ea143b40f7b8["verifyRegisteredListenerFailedFromApplicationEvents()"]
  793a55a4_4761_5427_9666_9bef3273e423["applicationListenerFromApplicationIsCalledWhenContextFailsRefreshBeforeListenerRegistration()"]
  793a55a4_4761_5427_9666_9bef3273e423 -->|calls| 8a76d892_750c_1f63_9067_ea143b40f7b8
  e28014d0_f2d9_ded7_d461_96bead7055dd["applicationListenerFromApplicationIsCalledWhenContextFailsRefreshAfterListenerRegistration()"]
  e28014d0_f2d9_ded7_d461_96bead7055dd -->|calls| 8a76d892_750c_1f63_9067_ea143b40f7b8
  38fc4cf6_e1f4_234f_e57e_0772756d13fc["onApplicationEvent()"]
  8a76d892_750c_1f63_9067_ea143b40f7b8 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  style 8a76d892_750c_1f63_9067_ea143b40f7b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 1041–1049

	private void verifyRegisteredListenerFailedFromApplicationEvents(ApplicationListener<ApplicationEvent> listener) {
		InOrder inOrder = Mockito.inOrder(listener);
		then(listener).should(inOrder).onApplicationEvent(isA(ApplicationStartingEvent.class));
		then(listener).should(inOrder).onApplicationEvent(isA(ApplicationEnvironmentPreparedEvent.class));
		then(listener).should(inOrder).onApplicationEvent(isA(ApplicationContextInitializedEvent.class));
		then(listener).should(inOrder).onApplicationEvent(isA(ApplicationPreparedEvent.class));
		then(listener).should(inOrder).onApplicationEvent(isA(ApplicationFailedEvent.class));
		inOrder.verifyNoMoreInteractions();
	}

Domain

Subdomains

Called By

  • applicationListenerFromApplicationIsCalledWhenContextFailsRefreshAfterListenerRegistration()
  • applicationListenerFromApplicationIsCalledWhenContextFailsRefreshBeforeListenerRegistration()

Frequently Asked Questions

What does verifyRegisteredListenerFailedFromApplicationEvents() do?
verifyRegisteredListenerFailedFromApplicationEvents() is a function in the spring-boot codebase.
What does verifyRegisteredListenerFailedFromApplicationEvents() call?
verifyRegisteredListenerFailedFromApplicationEvents() calls 1 function(s): onApplicationEvent.
What calls verifyRegisteredListenerFailedFromApplicationEvents()?
verifyRegisteredListenerFailedFromApplicationEvents() is called by 2 function(s): applicationListenerFromApplicationIsCalledWhenContextFailsRefreshAfterListenerRegistration, applicationListenerFromApplicationIsCalledWhenContextFailsRefreshBeforeListenerRegistration.

Analyze Your Own Codebase

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

Try Supermodel Free