Home / Function/ loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections() — spring-boot Function Reference

loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections() — spring-boot Function Reference

Architecture documentation for the loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections() function in ConfigurationPropertiesTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  ea71cd1c_bd60_4638_96fa_a374d3402989["loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections()"]
  cba1a510_b294_cced_2bbe_9861b2c09a45["addConverter()"]
  ea71cd1c_bd60_4638_96fa_a374d3402989 -->|calls| cba1a510_b294_cced_2bbe_9861b2c09a45
  1717e8be_8b72_90f1_79df_9b68ec1f776f["getAliens()"]
  ea71cd1c_bd60_4638_96fa_a374d3402989 -->|calls| 1717e8be_8b72_90f1_79df_9b68ec1f776f
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  ea71cd1c_bd60_4638_96fa_a374d3402989 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  05d207ba_cdfc_1f3b_359f_89b70a0aec4e["load()"]
  ea71cd1c_bd60_4638_96fa_a374d3402989 -->|calls| 05d207ba_cdfc_1f3b_359f_89b70a0aec4e
  79e302e1_2ba8_7480_6390_e7ccb9398ca6["getPerson()"]
  ea71cd1c_bd60_4638_96fa_a374d3402989 -->|calls| 79e302e1_2ba8_7480_6390_e7ccb9398ca6
  style ea71cd1c_bd60_4638_96fa_a374d3402989 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 778–794

	@Test // gh-38734
	void loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections() {
		DefaultConversionService conversionService = new DefaultConversionService();
		conversionService.addConverter(new PersonConverter());
		this.context.getBeanFactory().setConversionService(conversionService);
		load(new Class<?>[] { AlienConverterConfiguration.class, PersonAndAliensProperties.class },
				"test.person=John Smith", "test.aliens=Alf Tanner,Gilbert");
		PersonAndAliensProperties properties = this.context.getBean(PersonAndAliensProperties.class);
		Person person = properties.getPerson();
		assertThat(person).isNotNull();
		assertThat(person.firstName).isEqualTo("John");
		assertThat(person.lastName).isEqualTo("Smith");
		List<Alien> aliens = properties.getAliens();
		assertThat(aliens).isNotNull();
		assertThat(aliens.get(0).name).isEqualTo("rennaT flA");
		assertThat(aliens.get(1).name).isEqualTo("trebliG");
	}

Domain

Subdomains

Frequently Asked Questions

What does loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections() do?
loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections() is a function in the spring-boot codebase.
What does loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections() call?
loadWhenBeanFactoryConversionServiceAndConverterBeanCanUseConverterBeanWithCollections() calls 5 function(s): addConverter, get, getAliens, getPerson, load.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free