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

incrementalBuildTypeRenamed() — spring-boot Function Reference

Architecture documentation for the incrementalBuildTypeRenamed() function in IncrementalBuildMetadataGenerationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  1e9dbe62_3dd4_230f_1030_28375e16e639["incrementalBuildTypeRenamed()"]
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  1e9dbe62_3dd4_230f_1030_28375e16e639 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  a7060ba0_7028_1911_946e_7c3090117119["fromSource()"]
  1e9dbe62_3dd4_230f_1030_28375e16e639 -->|calls| a7060ba0_7028_1911_946e_7c3090117119
  3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"]
  1e9dbe62_3dd4_230f_1030_28375e16e639 -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681
  48f8fec2_2e27_3a1f_0f94_d07832e9810f["add()"]
  1e9dbe62_3dd4_230f_1030_28375e16e639 -->|calls| 48f8fec2_2e27_3a1f_0f94_d07832e9810f
  style 1e9dbe62_3dd4_230f_1030_28375e16e639 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/IncrementalBuildMetadataGenerationTests.java lines 75–93

	@Test
	void incrementalBuildTypeRenamed() {
		TestProject project = new TestProject(FooProperties.class, BarProperties.class);
		ConfigurationMetadata metadata = project.compile();
		assertThat(metadata)
			.has(Metadata.withProperty("foo.counter").fromSource(FooProperties.class).withDefaultValue(0));
		assertThat(metadata)
			.has(Metadata.withProperty("bar.counter").fromSource(BarProperties.class).withDefaultValue(0));
		assertThat(metadata).doesNotHave(Metadata.withProperty("bar.counter").fromSource(RenamedBarProperties.class));
		project.delete(BarProperties.class);
		project.add(RenamedBarProperties.class);
		metadata = project.compile(metadata);
		assertThat(metadata)
			.has(Metadata.withProperty("foo.counter").fromSource(FooProperties.class).withDefaultValue(0));
		assertThat(metadata)
			.doesNotHave(Metadata.withProperty("bar.counter").fromSource(BarProperties.class).withDefaultValue(0));
		assertThat(metadata)
			.has(Metadata.withProperty("bar.counter").withDefaultValue(0).fromSource(RenamedBarProperties.class));
	}

Domain

Subdomains

Frequently Asked Questions

What does incrementalBuildTypeRenamed() do?
incrementalBuildTypeRenamed() is a function in the spring-boot codebase.
What does incrementalBuildTypeRenamed() call?
incrementalBuildTypeRenamed() calls 4 function(s): add, fromSource, withDefaultValue, withProperty.

Analyze Your Own Codebase

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

Try Supermodel Free