createWhenNonExtractableParameterNamesOnPropertyAndNonIterablePropertySource() — spring-boot Function Reference
Architecture documentation for the createWhenNonExtractableParameterNamesOnPropertyAndNonIterablePropertySource() function in ValueObjectBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 4720c481_de15_891c_d77d_5b68a0f39c16["createWhenNonExtractableParameterNamesOnPropertyAndNonIterablePropertySource()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 4720c481_de15_891c_d77d_5b68a0f39c16 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 4720c481_de15_891c_d77d_5b68a0f39c16 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 1aeb892c_57b9_ec83_d74d_921ad48008fa["nonIterable()"] 4720c481_de15_891c_d77d_5b68a0f39c16 -->|calls| 1aeb892c_57b9_ec83_d74d_921ad48008fa 76576a77_87f7_3680_8561_2923813db3c1["of()"] 4720c481_de15_891c_d77d_5b68a0f39c16 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 style 4720c481_de15_891c_d77d_5b68a0f39c16 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/ValueObjectBinderTests.java lines 431–440
@Test
void createWhenNonExtractableParameterNamesOnPropertyAndNonIterablePropertySource() throws Exception {
assertThat(new DefaultParameterNameDiscoverer()
.getParameterNames(CharacterIndex.class.getDeclaredConstructor(CharSequence.class))).isNull();
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
this.sources.add(source.nonIterable());
Bindable<CharacterIndex> target = Bindable.of(CharacterIndex.class).withBindMethod(BindMethod.VALUE_OBJECT);
assertThatExceptionOfType(BindException.class).isThrownBy(() -> this.binder.bindOrCreate("test", target))
.withStackTraceContaining("Ensure that the compiler uses the '-parameters' flag");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does createWhenNonExtractableParameterNamesOnPropertyAndNonIterablePropertySource() do?
createWhenNonExtractableParameterNamesOnPropertyAndNonIterablePropertySource() is a function in the spring-boot codebase.
What does createWhenNonExtractableParameterNamesOnPropertyAndNonIterablePropertySource() call?
createWhenNonExtractableParameterNamesOnPropertyAndNonIterablePropertySource() calls 4 function(s): MockConfigurationPropertySource, add, nonIterable, of.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free