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

lombokInnerClassProperties() — spring-boot Function Reference

Architecture documentation for the lombokInnerClassProperties() function in LombokMetadataGenerationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  bf31f166_f699_3e3a_5414_33a268f41133["lombokInnerClassProperties()"]
  83ee5c58_5d39_6a9f_3b4b_81ba336603a7["withGroup()"]
  bf31f166_f699_3e3a_5414_33a268f41133 -->|calls| 83ee5c58_5d39_6a9f_3b4b_81ba336603a7
  a7060ba0_7028_1911_946e_7c3090117119["fromSource()"]
  bf31f166_f699_3e3a_5414_33a268f41133 -->|calls| a7060ba0_7028_1911_946e_7c3090117119
  70751124_3e92_ed3e_7f93_61d2e98490d3["ofType()"]
  bf31f166_f699_3e3a_5414_33a268f41133 -->|calls| 70751124_3e92_ed3e_7f93_61d2e98490d3
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  bf31f166_f699_3e3a_5414_33a268f41133 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  style bf31f166_f699_3e3a_5414_33a268f41133 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/LombokMetadataGenerationTests.java lines 96–120

	@Test
	void lombokInnerClassProperties() {
		ConfigurationMetadata metadata = compile(LombokInnerClassProperties.class);
		assertThat(metadata).has(Metadata.withGroup("config").fromSource(LombokInnerClassProperties.class));
		assertThat(metadata).has(Metadata.withGroup("config.first")
			.ofType(LombokInnerClassProperties.Foo.class)
			.fromSource(LombokInnerClassProperties.class));
		assertThat(metadata).has(Metadata.withProperty("config.first.name"));
		assertThat(metadata).has(Metadata.withProperty("config.first.bar.name"));
		assertThat(metadata).has(Metadata.withGroup("config.second", LombokInnerClassProperties.Foo.class)
			.fromSource(LombokInnerClassProperties.class));
		assertThat(metadata).has(Metadata.withProperty("config.second.name"));
		assertThat(metadata).has(Metadata.withProperty("config.second.bar.name"));
		assertThat(metadata).has(Metadata.withGroup("config.third")
			.ofType(SimpleLombokPojo.class)
			.fromSource(LombokInnerClassProperties.class));
		// For some reason the annotation processor resolves a type for SimpleLombokPojo
		// that is resolved (compiled) and the source annotations are gone. Because we
		// don't see the @Data annotation anymore, no field is harvested. What is crazy is
		// that a sample project works fine so this seems to be related to the unit test
		// environment for some reason. assertThat(metadata,
		// containsProperty("config.third.value"));
		assertThat(metadata).has(Metadata.withProperty("config.fourth"));
		assertThat(metadata).isNotEqualTo(Metadata.withGroup("config.fourth"));
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free