getWhenBeanIsAnnotatedReturnsBean() — spring-boot Function Reference
Architecture documentation for the getWhenBeanIsAnnotatedReturnsBean() function in ConfigurationPropertiesBeanTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 972e5247_f31d_e501_cb5c_f2381f9b3175["getWhenBeanIsAnnotatedReturnsBean()"] ff3e8438_b713_1adf_e1a7_6196edfc5c12["get()"] 972e5247_f31d_e501_cb5c_f2381f9b3175 -->|calls| ff3e8438_b713_1adf_e1a7_6196edfc5c12 f7e9ddde_2634_c57e_57b9_2c188cc789b6["getType()"] 972e5247_f31d_e501_cb5c_f2381f9b3175 -->|calls| f7e9ddde_2634_c57e_57b9_2c188cc789b6 ce02f572_c486_43df_ae0a_9908cf5bb011["getAnnotation()"] 972e5247_f31d_e501_cb5c_f2381f9b3175 -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 72ef994e_68af_b04d_cc4a_3a4530618274["getBindMethod()"] 972e5247_f31d_e501_cb5c_f2381f9b3175 -->|calls| 72ef994e_68af_b04d_cc4a_3a4530618274 style 972e5247_f31d_e501_cb5c_f2381f9b3175 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBeanTests.java lines 112–122
@Test
void getWhenBeanIsAnnotatedReturnsBean() throws Throwable {
get(AnnotatedComponent.class, "annotatedComponent", (propertiesBean) -> {
assertThat(propertiesBean).isNotNull();
assertThat(propertiesBean.getName()).isEqualTo("annotatedComponent");
assertThat(propertiesBean.getInstance()).isInstanceOf(AnnotatedComponent.class);
assertThat(propertiesBean.getType()).isEqualTo(AnnotatedComponent.class);
assertThat(propertiesBean.getAnnotation().prefix()).isEqualTo("prefix");
assertThat(propertiesBean.asBindTarget().getBindMethod()).isEqualTo(BindMethod.JAVA_BEAN);
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getWhenBeanIsAnnotatedReturnsBean() do?
getWhenBeanIsAnnotatedReturnsBean() is a function in the spring-boot codebase.
What does getWhenBeanIsAnnotatedReturnsBean() call?
getWhenBeanIsAnnotatedReturnsBean() 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