bindToArrayWhenNonSequentialShouldThrowException() — spring-boot Function Reference
Architecture documentation for the bindToArrayWhenNonSequentialShouldThrowException() function in ArrayBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f5b14c2c_83b6_ad0f_f7e2_debece53c59c["bindToArrayWhenNonSequentialShouldThrowException()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] f5b14c2c_83b6_ad0f_f7e2_debece53c59c -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] f5b14c2c_83b6_ad0f_f7e2_debece53c59c -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] f5b14c2c_83b6_ad0f_f7e2_debece53c59c -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 c0ad9f7d_f5a5_1e72_4fdb_dd2e7946bdf8["iterator()"] f5b14c2c_83b6_ad0f_f7e2_debece53c59c -->|calls| c0ad9f7d_f5a5_1e72_4fdb_dd2e7946bdf8 7437ce23_cb84_88cd_05ea_0748b72957a1["getName()"] f5b14c2c_83b6_ad0f_f7e2_debece53c59c -->|calls| 7437ce23_cb84_88cd_05ea_0748b72957a1 24826c4f_acf6_aa2a_3d90_87a20f29d219["getValue()"] f5b14c2c_83b6_ad0f_f7e2_debece53c59c -->|calls| 24826c4f_acf6_aa2a_3d90_87a20f29d219 style f5b14c2c_83b6_ad0f_f7e2_debece53c59c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/ArrayBinderTests.java lines 136–154
@Test
void bindToArrayWhenNonSequentialShouldThrowException() {
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_ARRAY))
.satisfies((ex) -> {
Throwable cause = ex.getCause();
assertThat(cause).isNotNull();
Set<ConfigurationProperty> unbound = ((UnboundConfigurationPropertiesException) cause)
.getUnboundProperties();
assertThat(unbound).hasSize(1);
ConfigurationProperty property = unbound.iterator().next();
assertThat(property.getName()).hasToString("foo[3]");
assertThat(property.getValue()).isEqualTo("3");
});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does bindToArrayWhenNonSequentialShouldThrowException() do?
bindToArrayWhenNonSequentialShouldThrowException() is a function in the spring-boot codebase.
What does bindToArrayWhenNonSequentialShouldThrowException() call?
bindToArrayWhenNonSequentialShouldThrowException() calls 6 function(s): MockConfigurationPropertySource, add, getName, getValue, iterator, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free