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

verifyRegisteredListenerSuccessEvents() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  1c4eed2b_535e_b8be_d572_95f403d15a8f["verifyRegisteredListenerSuccessEvents()"]
  3cc76156_3bab_ea44_6005_26c3fe639bf7["registerListener()"]
  3cc76156_3bab_ea44_6005_26c3fe639bf7 -->|calls| 1c4eed2b_535e_b8be_d572_95f403d15a8f
  af1f79ce_48cb_b7a3_4327_87a75cd52b72["registerListenerWithCustomMulticaster()"]
  af1f79ce_48cb_b7a3_4327_87a75cd52b72 -->|calls| 1c4eed2b_535e_b8be_d572_95f403d15a8f
  a35da67f_bd4f_4bd0_8fa1_b89b56fc3cb2["isAvailabilityChangeEventWithState()"]
  1c4eed2b_535e_b8be_d572_95f403d15a8f -->|calls| a35da67f_bd4f_4bd0_8fa1_b89b56fc3cb2
  38fc4cf6_e1f4_234f_e57e_0772756d13fc["onApplicationEvent()"]
  1c4eed2b_535e_b8be_d572_95f403d15a8f -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  style 1c4eed2b_535e_b8be_d572_95f403d15a8f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 1005–1018

	@SuppressWarnings("unchecked")
	private void verifyRegisteredListenerSuccessEvents(ConfigurableApplicationContext context) {
		ApplicationListener<ApplicationEvent> listener = context.getBean("testApplicationListener",
				ApplicationListener.class);
		InOrder inOrder = Mockito.inOrder(listener);
		then(listener).should(inOrder).onApplicationEvent(isA(ContextRefreshedEvent.class));
		then(listener).should(inOrder).onApplicationEvent(isA(ApplicationStartedEvent.class));
		then(listener).should(inOrder)
			.onApplicationEvent(argThat(isAvailabilityChangeEventWithState(LivenessState.CORRECT)));
		then(listener).should(inOrder).onApplicationEvent(isA(ApplicationReadyEvent.class));
		then(listener).should(inOrder)
			.onApplicationEvent(argThat(isAvailabilityChangeEventWithState(ReadinessState.ACCEPTING_TRAFFIC)));
		inOrder.verifyNoMoreInteractions();
	}

Domain

Subdomains

Called By

  • registerListener()
  • registerListenerWithCustomMulticaster()

Frequently Asked Questions

What does verifyRegisteredListenerSuccessEvents() do?
verifyRegisteredListenerSuccessEvents() is a function in the spring-boot codebase.
What does verifyRegisteredListenerSuccessEvents() call?
verifyRegisteredListenerSuccessEvents() calls 2 function(s): isAvailabilityChangeEventWithState, onApplicationEvent.
What calls verifyRegisteredListenerSuccessEvents()?
verifyRegisteredListenerSuccessEvents() is called by 2 function(s): registerListener, registerListenerWithCustomMulticaster.

Analyze Your Own Codebase

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

Try Supermodel Free