convertWhenHasEditorForCollectionElementShouldConvert() — spring-boot Function Reference
Architecture documentation for the convertWhenHasEditorForCollectionElementShouldConvert() function in BindConverterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD d789145a_26bc_43c6_e193_c897a6917102["convertWhenHasEditorForCollectionElementShouldConvert()"] bdfeb006_b9da_5983_cac9_e2ba7d41504c["getPropertyEditorOnlyBindConverter()"] d789145a_26bc_43c6_e193_c897a6917102 -->|calls| bdfeb006_b9da_5983_cac9_e2ba7d41504c 453ad167_21c1_223c_e055_50a2c6905e90["convert()"] d789145a_26bc_43c6_e193_c897a6917102 -->|calls| 453ad167_21c1_223c_e055_50a2c6905e90 da722caa_ce50_07a3_98b6_4f811e55c38a["getText()"] d789145a_26bc_43c6_e193_c897a6917102 -->|calls| da722caa_ce50_07a3_98b6_4f811e55c38a style d789145a_26bc_43c6_e193_c897a6917102 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BindConverterTests.java lines 138–145
@Test
void convertWhenHasEditorForCollectionElementShouldConvert() {
BindConverter bindConverter = getPropertyEditorOnlyBindConverter(this::registerSampleTypeEditor);
List<SampleType> converted = bindConverter.convert("test",
ResolvableType.forClassWithGenerics(List.class, SampleType.class));
assertThat(converted).hasSize(1);
assertThat(converted.get(0).getText()).isEqualTo("test");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does convertWhenHasEditorForCollectionElementShouldConvert() do?
convertWhenHasEditorForCollectionElementShouldConvert() is a function in the spring-boot codebase.
What does convertWhenHasEditorForCollectionElementShouldConvert() call?
convertWhenHasEditorForCollectionElementShouldConvert() calls 3 function(s): convert, getPropertyEditorOnlyBindConverter, getText.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free