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

getWhenImportedFactoryMethodIsAnnotatedReturnsBean() — spring-boot Function Reference

Architecture documentation for the getWhenImportedFactoryMethodIsAnnotatedReturnsBean() function in ConfigurationPropertiesBeanTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  3933828b_8c24_41dc_8a4e_fa9aac2274bf["getWhenImportedFactoryMethodIsAnnotatedReturnsBean()"]
  ff3e8438_b713_1adf_e1a7_6196edfc5c12["get()"]
  3933828b_8c24_41dc_8a4e_fa9aac2274bf -->|calls| ff3e8438_b713_1adf_e1a7_6196edfc5c12
  f7e9ddde_2634_c57e_57b9_2c188cc789b6["getType()"]
  3933828b_8c24_41dc_8a4e_fa9aac2274bf -->|calls| f7e9ddde_2634_c57e_57b9_2c188cc789b6
  ce02f572_c486_43df_ae0a_9908cf5bb011["getAnnotation()"]
  3933828b_8c24_41dc_8a4e_fa9aac2274bf -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011
  72ef994e_68af_b04d_cc4a_3a4530618274["getBindMethod()"]
  3933828b_8c24_41dc_8a4e_fa9aac2274bf -->|calls| 72ef994e_68af_b04d_cc4a_3a4530618274
  style 3933828b_8c24_41dc_8a4e_fa9aac2274bf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBeanTests.java lines 149–159

	@Test
	void getWhenImportedFactoryMethodIsAnnotatedReturnsBean() throws Throwable {
		get(NonAnnotatedBeanImportConfiguration.class, "nonAnnotatedBean", (propertiesBean) -> {
			assertThat(propertiesBean).isNotNull();
			assertThat(propertiesBean.getName()).isEqualTo("nonAnnotatedBean");
			assertThat(propertiesBean.getInstance()).isInstanceOf(NonAnnotatedBean.class);
			assertThat(propertiesBean.getType()).isEqualTo(NonAnnotatedBean.class);
			assertThat(propertiesBean.getAnnotation().prefix()).isEqualTo("prefix");
			assertThat(propertiesBean.asBindTarget().getBindMethod()).isEqualTo(BindMethod.JAVA_BEAN);
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does getWhenImportedFactoryMethodIsAnnotatedReturnsBean() do?
getWhenImportedFactoryMethodIsAnnotatedReturnsBean() is a function in the spring-boot codebase.
What does getWhenImportedFactoryMethodIsAnnotatedReturnsBean() call?
getWhenImportedFactoryMethodIsAnnotatedReturnsBean() calls 4 function(s): get, getAnnotation, getBindMethod, getType.

Analyze Your Own Codebase

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

Try Supermodel Free