analyzeWhenConfigDataResourceWithLocationNotFoundException() — spring-boot Function Reference
Architecture documentation for the analyzeWhenConfigDataResourceWithLocationNotFoundException() function in ConfigDataNotFoundFailureAnalyzerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 52ca3883_9c7e_b0b7_d197_0dd5068e7d5c["analyzeWhenConfigDataResourceWithLocationNotFoundException()"] 4aae9de5_75f3_928c_9f6e_0ae15df038a1["TestConfigDataResource()"] 52ca3883_9c7e_b0b7_d197_0dd5068e7d5c -->|calls| 4aae9de5_75f3_928c_9f6e_0ae15df038a1 ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"] 52ca3883_9c7e_b0b7_d197_0dd5068e7d5c -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48 1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"] 52ca3883_9c7e_b0b7_d197_0dd5068e7d5c -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1 style 52ca3883_9c7e_b0b7_d197_0dd5068e7d5c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataNotFoundFailureAnalyzerTests.java lines 78–90
@Test
void analyzeWhenConfigDataResourceWithLocationNotFoundException() {
ConfigDataLocation location = ConfigDataLocation.of("test");
ConfigDataResource resource = new TestConfigDataResource("myresource");
ConfigDataResourceNotFoundException exception = new ConfigDataResourceNotFoundException(resource)
.withLocation(location);
FailureAnalysis result = this.analyzer.analyze(exception);
assertThat(result).isNotNull();
assertThat(result.getDescription())
.isEqualTo("Config data resource 'myresource' via location 'test' does not exist");
assertThat(result.getAction())
.isEqualTo("Check that the value 'test' is correct, or prefix it with 'optional:'");
}
Domain
Subdomains
Calls
- TestConfigDataResource()
- getAction()
- getDescription()
Source
Frequently Asked Questions
What does analyzeWhenConfigDataResourceWithLocationNotFoundException() do?
analyzeWhenConfigDataResourceWithLocationNotFoundException() is a function in the spring-boot codebase.
What does analyzeWhenConfigDataResourceWithLocationNotFoundException() call?
analyzeWhenConfigDataResourceWithLocationNotFoundException() calls 3 function(s): TestConfigDataResource, getAction, getDescription.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free