throwWhenPidFileIsReadOnlyWithSpring() — spring-boot Function Reference
Architecture documentation for the throwWhenPidFileIsReadOnlyWithSpring() function in ApplicationPidFileWriterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD d30cbcfe_171d_63c0_38e7_2af5dbc9a3cf["throwWhenPidFileIsReadOnlyWithSpring()"] 13b775cb_73a1_b273_b3d9_b449ecd3b4e9["withReadOnlyPidFile()"] d30cbcfe_171d_63c0_38e7_2af5dbc9a3cf -->|calls| 13b775cb_73a1_b273_b3d9_b449ecd3b4e9 03f72db9_73c0_ad87_732c_d7136faafb06["createPreparedEvent()"] d30cbcfe_171d_63c0_38e7_2af5dbc9a3cf -->|calls| 03f72db9_73c0_ad87_732c_d7136faafb06 8c4757c3_25d9_25d6_91cc_5f9f3f8ef50d["onApplicationEvent()"] d30cbcfe_171d_63c0_38e7_2af5dbc9a3cf -->|calls| 8c4757c3_25d9_25d6_91cc_5f9f3f8ef50d style d30cbcfe_171d_63c0_38e7_2af5dbc9a3cf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/ApplicationPidFileWriterTests.java lines 152–160
@Test
void throwWhenPidFileIsReadOnlyWithSpring() throws Exception {
withReadOnlyPidFile((file) -> {
SpringApplicationEvent event = createPreparedEvent("spring.pid.fail-on-write-error", "true");
ApplicationPidFileWriter listener = new ApplicationPidFileWriter(file);
assertThatIllegalStateException().isThrownBy(() -> listener.onApplicationEvent(event))
.withMessageContaining("Cannot create pid file");
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does throwWhenPidFileIsReadOnlyWithSpring() do?
throwWhenPidFileIsReadOnlyWithSpring() is a function in the spring-boot codebase.
What does throwWhenPidFileIsReadOnlyWithSpring() call?
throwWhenPidFileIsReadOnlyWithSpring() calls 3 function(s): createPreparedEvent, onApplicationEvent, withReadOnlyPidFile.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free