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

buildPropertiesDefaultLocation() — spring-boot Function Reference

Architecture documentation for the buildPropertiesDefaultLocation() function in ProjectInfoAutoConfigurationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  97a176f6_19e4_2277_8a45_b2e6b483c4d0["buildPropertiesDefaultLocation()"]
  b0f3439b_dd2d_a572_45ac_8303d004039a["getGroup()"]
  97a176f6_19e4_2277_8a45_b2e6b483c4d0 -->|calls| b0f3439b_dd2d_a572_45ac_8303d004039a
  01f927bc_2f5e_18ee_ae90_cbc326b21280["getArtifact()"]
  97a176f6_19e4_2277_8a45_b2e6b483c4d0 -->|calls| 01f927bc_2f5e_18ee_ae90_cbc326b21280
  2435db46_e446_df2e_d43b_5d4a3ff349e7["getName()"]
  97a176f6_19e4_2277_8a45_b2e6b483c4d0 -->|calls| 2435db46_e446_df2e_d43b_5d4a3ff349e7
  57e169ca_5baf_1ba1_fdc7_d46aecb13554["getVersion()"]
  97a176f6_19e4_2277_8a45_b2e6b483c4d0 -->|calls| 57e169ca_5baf_1ba1_fdc7_d46aecb13554
  03873c8e_bcfa_c348_0f22_4972a8ba24c2["getTime()"]
  97a176f6_19e4_2277_8a45_b2e6b483c4d0 -->|calls| 03873c8e_bcfa_c348_0f22_4972a8ba24c2
  style 97a176f6_19e4_2277_8a45_b2e6b483c4d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/info/ProjectInfoAutoConfigurationTests.java lines 94–113

	@Test
	@WithResource(name = "META-INF/build-info.properties", content = """
			build.group=com.example
			build.artifact=demo
			build.name=Demo Project
			build.version=0.0.1-SNAPSHOT
			build.time=2016-03-04T14:16:05.000Z
			""")
	void buildPropertiesDefaultLocation() {
		this.contextRunner.run((context) -> {
			BuildProperties buildProperties = context.getBean(BuildProperties.class);
			assertThat(buildProperties.getGroup()).isEqualTo("com.example");
			assertThat(buildProperties.getArtifact()).isEqualTo("demo");
			assertThat(buildProperties.getName()).isEqualTo("Demo Project");
			assertThat(buildProperties.getVersion()).isEqualTo("0.0.1-SNAPSHOT");
			Instant time = buildProperties.getTime();
			assertThat(time).isNotNull();
			assertThat(time.toEpochMilli()).isEqualTo(1457100965000L);
		});
	}

Domain

Subdomains

Calls

  • getArtifact()
  • getGroup()
  • getName()
  • getTime()
  • getVersion()

Frequently Asked Questions

What does buildPropertiesDefaultLocation() do?
buildPropertiesDefaultLocation() is a function in the spring-boot codebase.
What does buildPropertiesDefaultLocation() call?
buildPropertiesDefaultLocation() calls 5 function(s): getArtifact, getGroup, getName, getTime, getVersion.

Analyze Your Own Codebase

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

Try Supermodel Free