whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient() — spring-boot Function Reference
Architecture documentation for the whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient() function in ErrorPageFilterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 7c51aca1_5a96_ce74_2534_9e8d14636ff6["whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient()"] b3fa6802_0fcb_6ddf_3e94_a5f8ad2cf83a["TestFilterChain()"] 7c51aca1_5a96_ce74_2534_9e8d14636ff6 -->|calls| b3fa6802_0fcb_6ddf_3e94_a5f8ad2cf83a 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5["doFilter()"] 7c51aca1_5a96_ce74_2534_9e8d14636ff6 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 7606f772_1e74_2d47_7ffb_917e96483136["getStatus()"] 7c51aca1_5a96_ce74_2534_9e8d14636ff6 -->|calls| 7606f772_1e74_2d47_7ffb_917e96483136 style 7c51aca1_5a96_ce74_2534_9e8d14636ff6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/web/servlet/support/ErrorPageFilterTests.java lines 412–420
@Test
void whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient() throws Exception {
this.chain = new TestFilterChain((request, response, chain) -> {
response.sendError(400);
response.getWriter().flush();
});
this.filter.doFilter(this.request, this.response, this.chain);
assertThat(this.response.getStatus()).isEqualTo(400);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient() do?
whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient() is a function in the spring-boot codebase.
What does whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient() call?
whenErrorIsSentAndWriterIsFlushedErrorIsSentToTheClient() calls 3 function(s): TestFilterChain, doFilter, getStatus.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free