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

assertThatSingleRegistration() — spring-boot Function Reference

Architecture documentation for the assertThatSingleRegistration() function in ServletContextInitializerBeansTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  079efcce_86ee_22ae_627e_5c2cb80c3146["assertThatSingleRegistration()"]
  425fb3ae_542d_84fc_a752_5418cf46293b["shouldApplyServletRegistrationAnnotation()"]
  425fb3ae_542d_84fc_a752_5418cf46293b -->|calls| 079efcce_86ee_22ae_627e_5c2cb80c3146
  49bdf898_fdac_23df_4c40_a6e137bd23b0["shouldApplyFilterRegistrationAnnotation()"]
  49bdf898_fdac_23df_4c40_a6e137bd23b0 -->|calls| 079efcce_86ee_22ae_627e_5c2cb80c3146
  58469e06_4c84_7dfd_a844_f834096b05e7["shouldApplyFilterRegistrationAnnotationWithDefaultDispatcherTypes()"]
  58469e06_4c84_7dfd_a844_f834096b05e7 -->|calls| 079efcce_86ee_22ae_627e_5c2cb80c3146
  6fc3cb3a_556f_6308_e9a6_ea2cfa892d40["shouldApplyOrderFromBean()"]
  6fc3cb3a_556f_6308_e9a6_ea2cfa892d40 -->|calls| 079efcce_86ee_22ae_627e_5c2cb80c3146
  8d6dced4_6f0f_a8b0_a472_17bc2bb76e59["shouldApplyOrderFromOrderAnnotationOnBeanMethod()"]
  8d6dced4_6f0f_a8b0_a472_17bc2bb76e59 -->|calls| 079efcce_86ee_22ae_627e_5c2cb80c3146
  f341a8e5_c9ae_d8b7_0762_c3faa9b2170c["orderedInterfaceShouldTakePrecedenceOverOrderAnnotation()"]
  f341a8e5_c9ae_d8b7_0762_c3faa9b2170c -->|calls| 079efcce_86ee_22ae_627e_5c2cb80c3146
  cf999e45_9b5e_0b70_4271_cdf2b8a4bd07["shouldApplyOrderFromOrderAttribute()"]
  cf999e45_9b5e_0b70_4271_cdf2b8a4bd07 -->|calls| 079efcce_86ee_22ae_627e_5c2cb80c3146
  style 079efcce_86ee_22ae_627e_5c2cb80c3146 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/web/servlet/ServletContextInitializerBeansTests.java lines 224–230

	private <T extends RegistrationBean> void assertThatSingleRegistration(
			ServletContextInitializerBeans initializerBeans, Class<T> clazz, ThrowingConsumer<T> code) {
		assertThat(initializerBeans).hasSize(1);
		ServletContextInitializer initializer = initializerBeans.iterator().next();
		assertThat(initializer).isInstanceOf(clazz);
		code.accept(clazz.cast(initializer));
	}

Domain

Subdomains

Frequently Asked Questions

What does assertThatSingleRegistration() do?
assertThatSingleRegistration() is a function in the spring-boot codebase.
What calls assertThatSingleRegistration()?
assertThatSingleRegistration() is called by 7 function(s): orderedInterfaceShouldTakePrecedenceOverOrderAnnotation, shouldApplyFilterRegistrationAnnotation, shouldApplyFilterRegistrationAnnotationWithDefaultDispatcherTypes, shouldApplyOrderFromBean, shouldApplyOrderFromOrderAnnotationOnBeanMethod, shouldApplyOrderFromOrderAttribute, shouldApplyServletRegistrationAnnotation.

Analyze Your Own Codebase

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

Try Supermodel Free