notAnErrorButNotOK() — spring-boot Function Reference
Architecture documentation for the notAnErrorButNotOK() function in ErrorPageFilterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1b3cf6d8_1c25_c82a_7114_adc82842a816["notAnErrorButNotOK()"] b3fa6802_0fcb_6ddf_3e94_a5f8ad2cf83a["TestFilterChain()"] 1b3cf6d8_1c25_c82a_7114_adc82842a816 -->|calls| b3fa6802_0fcb_6ddf_3e94_a5f8ad2cf83a 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5["doFilter()"] 1b3cf6d8_1c25_c82a_7114_adc82842a816 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5 b31ddfb9_cf30_450c_456a_1eb75ca296e5["getChainResponse()"] 1b3cf6d8_1c25_c82a_7114_adc82842a816 -->|calls| b31ddfb9_cf30_450c_456a_1eb75ca296e5 7606f772_1e74_2d47_7ffb_917e96483136["getStatus()"] 1b3cf6d8_1c25_c82a_7114_adc82842a816 -->|calls| 7606f772_1e74_2d47_7ffb_917e96483136 style 1b3cf6d8_1c25_c82a_7114_adc82842a816 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 84–95
@Test
void notAnErrorButNotOK() throws Exception {
this.chain = new TestFilterChain((request, response, chain) -> {
response.setStatus(201);
chain.call();
response.flushBuffer();
});
this.filter.doFilter(this.request, this.response, this.chain);
assertThat(getChainResponse().getStatus()).isEqualTo(201);
assertThat(((HttpServletResponse) getChainResponse().getResponse()).getStatus()).isEqualTo(201);
assertThat(this.response.isCommitted()).isTrue();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does notAnErrorButNotOK() do?
notAnErrorButNotOK() is a function in the spring-boot codebase.
What does notAnErrorButNotOK() call?
notAnErrorButNotOK() calls 4 function(s): TestFilterChain, doFilter, getChainResponse, getStatus.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free