cycleWithAutowiredFields() — spring-boot Function Reference
Architecture documentation for the cycleWithAutowiredFields() function in BeanCurrentlyInCreationFailureAnalyzerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 7a907a11_9ad5_d765_3ef0_8a05fd79c77a["cycleWithAutowiredFields()"] e3512328_d1bb_71b9_929e_ae0e03cc496c["performAnalysis()"] 7a907a11_9ad5_d765_3ef0_8a05fd79c77a -->|calls| e3512328_d1bb_71b9_929e_ae0e03cc496c ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"] 7a907a11_9ad5_d765_3ef0_8a05fd79c77a -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48 fa1cbc7c_dc65_7706_d08a_c9aadfe5feac["readDescriptionLines()"] 7a907a11_9ad5_d765_3ef0_8a05fd79c77a -->|calls| fa1cbc7c_dc65_7706_d08a_c9aadfe5feac 1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"] 7a907a11_9ad5_d765_3ef0_8a05fd79c77a -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1 style 7a907a11_9ad5_d765_3ef0_8a05fd79c77a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java lines 72–91
@Test
void cycleWithAutowiredFields() throws IOException {
FailureAnalysis analysis = performAnalysis(CycleWithAutowiredFields.class);
assertThat(analysis.getDescription())
.startsWith("The dependencies of some of the beans in the application context form a cycle:");
List<String> lines = readDescriptionLines(analysis);
assertThat(lines).hasSize(9);
assertThat(lines.get(0))
.isEqualTo("The dependencies of some of the beans in the application context form a cycle:");
assertThat(lines.get(1)).isEmpty();
assertThat(lines.get(2)).isEqualTo("┌─────┐");
assertThat(lines.get(3)).startsWith("| three defined in " + BeanThreeConfiguration.class.getName());
assertThat(lines.get(4)).isEqualTo("↑ ↓");
assertThat(lines.get(5)).startsWith("| one defined in " + CycleWithAutowiredFields.class.getName());
assertThat(lines.get(6)).isEqualTo("↑ ↓");
assertThat(lines.get(7))
.startsWith("| " + BeanTwoConfiguration.class.getName() + " (field private " + BeanThree.class.getName());
assertThat(lines.get(8)).isEqualTo("└─────┘");
assertThat(analysis.getAction()).isNotNull();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does cycleWithAutowiredFields() do?
cycleWithAutowiredFields() is a function in the spring-boot codebase.
What does cycleWithAutowiredFields() call?
cycleWithAutowiredFields() calls 4 function(s): getAction, getDescription, performAnalysis, readDescriptionLines.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free