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

getWhenFactoryMethodIsAnnotatedReturnsBean() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

	@Test
	void getWhenFactoryMethodIsAnnotatedReturnsBean() throws Throwable {
		get(NonAnnotatedBeanConfiguration.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 getWhenFactoryMethodIsAnnotatedReturnsBean() do?
getWhenFactoryMethodIsAnnotatedReturnsBean() is a function in the spring-boot codebase.
What does getWhenFactoryMethodIsAnnotatedReturnsBean() call?
getWhenFactoryMethodIsAnnotatedReturnsBean() 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