withNoEnvironment() — spring-boot Function Reference
Architecture documentation for the withNoEnvironment() function in ApplicationPidFileWriterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 12663191_9242_dd41_3687_f6a0987d8120["withNoEnvironment()"] 8c4757c3_25d9_25d6_91cc_5f9f3f8ef50d["onApplicationEvent()"] 12663191_9242_dd41_3687_f6a0987d8120 -->|calls| 8c4757c3_25d9_25d6_91cc_5f9f3f8ef50d be3bab95_2d77_cc83_e74d_439204d631d0["ApplicationStartingEvent()"] 12663191_9242_dd41_3687_f6a0987d8120 -->|calls| be3bab95_2d77_cc83_e74d_439204d631d0 16b51c89_dde4_bfa7_4c6d_cd813dd33ba3["SpringApplication()"] 12663191_9242_dd41_3687_f6a0987d8120 -->|calls| 16b51c89_dde4_bfa7_4c6d_cd813dd33ba3 style 12663191_9242_dd41_3687_f6a0987d8120 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/ApplicationPidFileWriterTests.java lines 123–131
@Test
void withNoEnvironment() {
File file = new File(this.tempDir, "pid");
ApplicationPidFileWriter listener = new ApplicationPidFileWriter(file);
listener.setTriggerEventType(ApplicationStartingEvent.class);
listener.onApplicationEvent(
new ApplicationStartingEvent(new DefaultBootstrapContext(), new SpringApplication(), new String[] {}));
assertThat(contentOf(file)).isNotEmpty();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does withNoEnvironment() do?
withNoEnvironment() is a function in the spring-boot codebase.
What does withNoEnvironment() call?
withNoEnvironment() calls 3 function(s): ApplicationStartingEvent, SpringApplication, onApplicationEvent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free