getAllReturnsAll() — spring-boot Function Reference
Architecture documentation for the getAllReturnsAll() function in ConfigurationPropertiesBeanTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1e12bf1b_7cdd_76d3_6b77_556188f5dbfc["getAllReturnsAll()"] ff3e8438_b713_1adf_e1a7_6196edfc5c12["get()"] 1e12bf1b_7cdd_76d3_6b77_556188f5dbfc -->|calls| ff3e8438_b713_1adf_e1a7_6196edfc5c12 ce02f572_c486_43df_ae0a_9908cf5bb011["getAnnotation()"] 1e12bf1b_7cdd_76d3_6b77_556188f5dbfc -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 f7e9ddde_2634_c57e_57b9_2c188cc789b6["getType()"] 1e12bf1b_7cdd_76d3_6b77_556188f5dbfc -->|calls| f7e9ddde_2634_c57e_57b9_2c188cc789b6 72ef994e_68af_b04d_cc4a_3a4530618274["getBindMethod()"] 1e12bf1b_7cdd_76d3_6b77_556188f5dbfc -->|calls| 72ef994e_68af_b04d_cc4a_3a4530618274 style 1e12bf1b_7cdd_76d3_6b77_556188f5dbfc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBeanTests.java lines 56–85
@Test
void getAllReturnsAll() {
try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
NonAnnotatedComponent.class, AnnotatedComponent.class, AnnotatedBeanConfiguration.class,
ValueObjectConfiguration.class)) {
Map<String, ConfigurationPropertiesBean> all = ConfigurationPropertiesBean.getAll(context);
assertThat(all).containsOnlyKeys("annotatedComponent", "annotatedBean", ValueObject.class.getName());
ConfigurationPropertiesBean component = all.get("annotatedComponent");
assertThat(component).isNotNull();
assertThat(component.getName()).isEqualTo("annotatedComponent");
assertThat(component.getInstance()).isInstanceOf(AnnotatedComponent.class);
assertThat(component.getAnnotation()).isNotNull();
assertThat(component.getType()).isEqualTo(AnnotatedComponent.class);
assertThat(component.asBindTarget().getBindMethod()).isEqualTo(BindMethod.JAVA_BEAN);
ConfigurationPropertiesBean bean = all.get("annotatedBean");
assertThat(bean).isNotNull();
assertThat(bean.getName()).isEqualTo("annotatedBean");
assertThat(bean.getInstance()).isInstanceOf(AnnotatedBean.class);
assertThat(bean.getType()).isEqualTo(AnnotatedBean.class);
assertThat(bean.getAnnotation()).isNotNull();
assertThat(bean.asBindTarget().getBindMethod()).isEqualTo(BindMethod.JAVA_BEAN);
ConfigurationPropertiesBean valueObject = all.get(ValueObject.class.getName());
assertThat(valueObject).isNotNull();
assertThat(valueObject.getName()).isEqualTo(ValueObject.class.getName());
assertThat(valueObject.getInstance()).isInstanceOf(ValueObject.class);
assertThat(valueObject.getType()).isEqualTo(ValueObject.class);
assertThat(valueObject.getAnnotation()).isNotNull();
assertThat(valueObject.asBindTarget().getBindMethod()).isEqualTo(BindMethod.VALUE_OBJECT);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getAllReturnsAll() do?
getAllReturnsAll() is a function in the spring-boot codebase.
What does getAllReturnsAll() call?
getAllReturnsAll() 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