failureAnalysisForXmlConsumer() — spring-boot Function Reference
Architecture documentation for the failureAnalysisForXmlConsumer() function in NoUniqueBeanDefinitionFailureAnalyzerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3a992b4d_1eb4_2e63_4488_f7a70af0872f["failureAnalysisForXmlConsumer()"] 43901c45_86fa_2580_eddb_4457b8519148["analyzeFailure()"] 3a992b4d_1eb4_2e63_4488_f7a70af0872f -->|calls| 43901c45_86fa_2580_eddb_4457b8519148 7059bd71_0e03_239d_9515_827b133d76a2["createFailure()"] 3a992b4d_1eb4_2e63_4488_f7a70af0872f -->|calls| 7059bd71_0e03_239d_9515_827b133d76a2 ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"] 3a992b4d_1eb4_2e63_4488_f7a70af0872f -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48 da19625e_6502_09a1_442e_dce9694bf08c["assertFoundBeans()"] 3a992b4d_1eb4_2e63_4488_f7a70af0872f -->|calls| da19625e_6502_09a1_442e_dce9694bf08c style 3a992b4d_1eb4_2e63_4488_f7a70af0872f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/NoUniqueBeanDefinitionFailureAnalyzerTests.java lines 93–110
@Test
@WithResource(name = "consumer.xml",
content = """
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
<bean class="org.springframework.boot.diagnostics.analyzer.nounique.TestBeanConsumer"/>
</beans>
""")
void failureAnalysisForXmlConsumer() {
FailureAnalysis failureAnalysis = analyzeFailure(createFailure(XmlConsumer.class));
assertThat(failureAnalysis.getDescription()).startsWith("Parameter 0 of constructor in "
+ TestBeanConsumer.class.getName() + " required a single bean, but 6 were found:");
assertFoundBeans(failureAnalysis);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does failureAnalysisForXmlConsumer() do?
failureAnalysisForXmlConsumer() is a function in the spring-boot codebase.
What does failureAnalysisForXmlConsumer() call?
failureAnalysisForXmlConsumer() calls 4 function(s): analyzeFailure, assertFoundBeans, createFailure, getDescription.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free