closeMulticastsEventToListeners() — spring-boot Function Reference
Architecture documentation for the closeMulticastsEventToListeners() function in DefaultBootstrapContextTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD b4b5d159_60c1_0c2e_4e20_3b4ec43e8f6d["closeMulticastsEventToListeners()"] a341c549_c48a_7722_6b69_fd0f6a68222e["assertThat()"] b4b5d159_60c1_0c2e_4e20_3b4ec43e8f6d -->|calls| a341c549_c48a_7722_6b69_fd0f6a68222e 2be000db_eeb5_d700_0ddd_6aa766193106["wasNotCalled()"] b4b5d159_60c1_0c2e_4e20_3b4ec43e8f6d -->|calls| 2be000db_eeb5_d700_0ddd_6aa766193106 9f5de0bd_0409_6313_ebd4_aa838185952c["wasCalledOnlyOnce()"] b4b5d159_60c1_0c2e_4e20_3b4ec43e8f6d -->|calls| 9f5de0bd_0409_6313_ebd4_aa838185952c 54829dcb_f285_1c48_2b77_43c4b3743f2e["hasBootstrapContextSameAs()"] b4b5d159_60c1_0c2e_4e20_3b4ec43e8f6d -->|calls| 54829dcb_f285_1c48_2b77_43c4b3743f2e 489f00ba_1b23_34d0_412f_313f29831bdd["hasApplicationContextSameAs()"] b4b5d159_60c1_0c2e_4e20_3b4ec43e8f6d -->|calls| 489f00ba_1b23_34d0_412f_313f29831bdd style b4b5d159_60c1_0c2e_4e20_3b4ec43e8f6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/bootstrap/DefaultBootstrapContextTests.java lines 252–261
@Test
void closeMulticastsEventToListeners() {
TestCloseListener listener = new TestCloseListener();
this.context.addCloseListener(listener);
assertThat(listener).wasNotCalled();
this.context.close(this.applicationContext);
assertThat(listener).wasCalledOnlyOnce()
.hasBootstrapContextSameAs(this.context)
.hasApplicationContextSameAs(this.applicationContext);
}
Domain
Subdomains
Calls
- assertThat()
- hasApplicationContextSameAs()
- hasBootstrapContextSameAs()
- wasCalledOnlyOnce()
- wasNotCalled()
Source
Frequently Asked Questions
What does closeMulticastsEventToListeners() do?
closeMulticastsEventToListeners() is a function in the spring-boot codebase.
What does closeMulticastsEventToListeners() call?
closeMulticastsEventToListeners() calls 5 function(s): assertThat, hasApplicationContextSameAs, hasBootstrapContextSameAs, wasCalledOnlyOnce, wasNotCalled.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free