IncompatibleConfigurationFailureAnalyzerTests Class — spring-boot Architecture
Architecture documentation for the IncompatibleConfigurationFailureAnalyzerTests class in IncompatibleConfigurationFailureAnalyzerTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/IncompatibleConfigurationFailureAnalyzerTests.java lines 31–48
class IncompatibleConfigurationFailureAnalyzerTests {
@Test
void incompatibleConfigurationListsKeys() {
FailureAnalysis failureAnalysis = performAnalysis("spring.first.key", "spring.second.key");
assertThat(failureAnalysis).isNotNull();
assertThat(failureAnalysis.getDescription()).contains(
"The following configuration properties have incompatible values: [spring.first.key, spring.second.key]");
assertThat(failureAnalysis.getAction())
.contains("Review the docs for spring.first.key, spring.second.key and change the configured values.");
}
private @Nullable FailureAnalysis performAnalysis(String... keys) {
IncompatibleConfigurationException failure = new IncompatibleConfigurationException(keys);
return new IncompatibleConfigurationFailureAnalyzer().analyze(failure);
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free