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

addIfAbsentAddsPropertyIfItDoesNotExist() — spring-boot Function Reference

Architecture documentation for the addIfAbsentAddsPropertyIfItDoesNotExist() function in MetadataCollectorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  50ec01fe_3082_0cf7_5591_d17d973740ef["addIfAbsentAddsPropertyIfItDoesNotExist()"]
  c04718c1_4f96_61c9_8fb3_d6e3b5819110["createSimpleCollector()"]
  50ec01fe_3082_0cf7_5591_d17d973740ef -->|calls| c04718c1_4f96_61c9_8fb3_d6e3b5819110
  c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239["getItems()"]
  50ec01fe_3082_0cf7_5591_d17d973740ef -->|calls| c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  50ec01fe_3082_0cf7_5591_d17d973740ef -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  style 50ec01fe_3082_0cf7_5591_d17d973740ef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/MetadataCollectorTests.java lines 64–71

	@Test
	void addIfAbsentAddsPropertyIfItDoesNotExist() {
		MetadataCollector collector = createSimpleCollector();
		collector.addIfAbsent(SINGLE_ITEM_METADATA.getItems().get(0));
		ConfigurationMetadata metadata = collector.getMetadata();
		assertThat(metadata).has(Metadata.withProperty("name", String.class));
		assertThat(metadata.getItems()).hasSize(1);
	}

Domain

Subdomains

Frequently Asked Questions

What does addIfAbsentAddsPropertyIfItDoesNotExist() do?
addIfAbsentAddsPropertyIfItDoesNotExist() is a function in the spring-boot codebase.
What does addIfAbsentAddsPropertyIfItDoesNotExist() call?
addIfAbsentAddsPropertyIfItDoesNotExist() calls 3 function(s): createSimpleCollector, getItems, withProperty.

Analyze Your Own Codebase

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

Try Supermodel Free