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

getOriginFromFlatReturnsOrigin() — spring-boot Function Reference

Architecture documentation for the getOriginFromFlatReturnsOrigin() function in ConfigTreePropertySourceTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  9a2535aa_9ae2_6317_27f6_bb8f0386504f["getOriginFromFlatReturnsOrigin()"]
  fd2b653f_0fed_4b6a_7ecd_f78b35dc6b35["getFlatPropertySource()"]
  9a2535aa_9ae2_6317_27f6_bb8f0386504f -->|calls| fd2b653f_0fed_4b6a_7ecd_f78b35dc6b35
  aaefff97_ffeb_f1e8_1ecf_6ef0d6c55cfa["getResource()"]
  9a2535aa_9ae2_6317_27f6_bb8f0386504f -->|calls| aaefff97_ffeb_f1e8_1ecf_6ef0d6c55cfa
  84459ba0_1110_154c_3026_eb8d5a4a050e["getLocation()"]
  9a2535aa_9ae2_6317_27f6_bb8f0386504f -->|calls| 84459ba0_1110_154c_3026_eb8d5a4a050e
  acc15c0b_a82e_9e40_0262_044459c8eec8["getLine()"]
  9a2535aa_9ae2_6317_27f6_bb8f0386504f -->|calls| acc15c0b_a82e_9e40_0262_044459c8eec8
  2930aecb_b160_f8df_0ea1_d6b3c58c4e62["getColumn()"]
  9a2535aa_9ae2_6317_27f6_bb8f0386504f -->|calls| 2930aecb_b160_f8df_0ea1_d6b3c58c4e62
  style 9a2535aa_9ae2_6317_27f6_bb8f0386504f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/env/ConfigTreePropertySourceTests.java lines 149–161

	@Test
	void getOriginFromFlatReturnsOrigin() throws Exception {
		ConfigTreePropertySource propertySource = getFlatPropertySource();
		TextResourceOrigin origin = (TextResourceOrigin) propertySource.getOrigin("b");
		assertThat(origin).isNotNull();
		Resource resource = origin.getResource();
		assertThat(resource).isNotNull();
		assertThat(resource.getFile()).isEqualTo(this.directory.resolve("b").toFile());
		Location location = origin.getLocation();
		assertThat(location).isNotNull();
		assertThat(location.getLine()).isZero();
		assertThat(location.getColumn()).isZero();
	}

Domain

Subdomains

Frequently Asked Questions

What does getOriginFromFlatReturnsOrigin() do?
getOriginFromFlatReturnsOrigin() is a function in the spring-boot codebase.
What does getOriginFromFlatReturnsOrigin() call?
getOriginFromFlatReturnsOrigin() calls 5 function(s): getColumn, getFlatPropertySource, getLine, getLocation, getResource.

Analyze Your Own Codebase

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

Try Supermodel Free