loadSources() — spring-boot Function Reference
Architecture documentation for the loadSources() function in SpringApplicationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD d75e8832_9bb6_96a3_67ef_bf5b1fd57510["loadSources()"] 69816486_a4f0_d760_faa8_b84520ac7e8a["TestSpringApplication()"] d75e8832_9bb6_96a3_67ef_bf5b1fd57510 -->|calls| 69816486_a4f0_d760_faa8_b84520ac7e8a c0b9e6ef_e188_d4ad_3c8b_5a96146d11c1["setUseMockLoader()"] d75e8832_9bb6_96a3_67ef_bf5b1fd57510 -->|calls| c0b9e6ef_e188_d4ad_3c8b_5a96146d11c1 2f52a2b0_73b0_9048_618c_5bed4f31ac43["run()"] d75e8832_9bb6_96a3_67ef_bf5b1fd57510 -->|calls| 2f52a2b0_73b0_9048_618c_5bed4f31ac43 style d75e8832_9bb6_96a3_67ef_bf5b1fd57510 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 813–823
@Test
void loadSources() {
Class<?>[] sources = { ExampleConfig.class, TestCommandLineRunner.class };
TestSpringApplication application = new TestSpringApplication(sources);
application.getSources().add("a");
application.setWebApplicationType(WebApplicationType.NONE);
application.setUseMockLoader(true);
this.context = application.run();
Set<Object> allSources = application.getAllSources();
assertThat(allSources).contains(ExampleConfig.class, TestCommandLineRunner.class, "a");
}
Domain
Subdomains
Calls
- TestSpringApplication()
- run()
- setUseMockLoader()
Source
Frequently Asked Questions
What does loadSources() do?
loadSources() is a function in the spring-boot codebase.
What does loadSources() call?
loadSources() calls 3 function(s): TestSpringApplication, run, setUseMockLoader.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free