bindToCollectionWhenNonSequentialShouldThrowException() — spring-boot Function Reference
Architecture documentation for the bindToCollectionWhenNonSequentialShouldThrowException() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f5a5e6c0_0036_a6a7_6aa1_db94776dbc5b["bindToCollectionWhenNonSequentialShouldThrowException()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] f5a5e6c0_0036_a6a7_6aa1_db94776dbc5b -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] f5a5e6c0_0036_a6a7_6aa1_db94776dbc5b -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 7437ce23_cb84_88cd_05ea_0748b72957a1["getName()"] f5a5e6c0_0036_a6a7_6aa1_db94776dbc5b -->|calls| 7437ce23_cb84_88cd_05ea_0748b72957a1 b36de6d8_b985_12e4_b731_db390fd85040["getValue()"] f5a5e6c0_0036_a6a7_6aa1_db94776dbc5b -->|calls| b36de6d8_b985_12e4_b731_db390fd85040 style f5a5e6c0_0036_a6a7_6aa1_db94776dbc5b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java lines 112–130
@Test
void bindToCollectionWhenNonSequentialShouldThrowException() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo[0]", "2");
source.put("foo[1]", "1");
source.put("foo[3]", "3");
this.sources.add(source);
assertThatExceptionOfType(BindException.class).isThrownBy(() -> this.binder.bind("foo", INTEGER_LIST))
.satisfies((ex) -> {
Throwable cause = ex.getCause();
assertThat(cause).isNotNull();
Set<ConfigurationProperty> unbound = ((UnboundConfigurationPropertiesException) cause)
.getUnboundProperties();
assertThat(unbound).singleElement().satisfies((property) -> {
assertThat(property.getName()).hasToString("foo[3]");
assertThat(property.getValue()).isEqualTo("3");
});
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToCollectionWhenNonSequentialShouldThrowException() do?
bindToCollectionWhenNonSequentialShouldThrowException() is a function in the spring-boot codebase.
What does bindToCollectionWhenNonSequentialShouldThrowException() call?
bindToCollectionWhenNonSequentialShouldThrowException() calls 4 function(s): MockConfigurationPropertySource, getName, getValue, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free