testClientExceptionWithResponse() — netty Function Reference
Architecture documentation for the testClientExceptionWithResponse() function in WebSocketHandshakeExceptionTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9ce86adf_651a_4da8_5112_af6a28c979db["testClientExceptionWithResponse()"] 2b19c4fa_b917_c100_40ae_46384c31b5fd["WebSocketHandshakeExceptionTest"] 9ce86adf_651a_4da8_5112_af6a28c979db -->|defined in| 2b19c4fa_b917_c100_40ae_46384c31b5fd style 9ce86adf_651a_4da8_5112_af6a28c979db fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketHandshakeExceptionTest.java lines 41–52
@Test
public void testClientExceptionWithResponse() {
HttpResponse httpResponse = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.BAD_REQUEST);
httpResponse.headers().set("x-header", "x-value");
WebSocketClientHandshakeException clientException = new WebSocketClientHandshakeException("client message",
httpResponse);
assertNotNull(clientException.response());
assertEquals("client message", clientException.getMessage());
assertEquals(HttpResponseStatus.BAD_REQUEST, clientException.response().status());
assertEquals(httpResponse.headers(), clientException.response().headers());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testClientExceptionWithResponse() do?
testClientExceptionWithResponse() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketHandshakeExceptionTest.java.
Where is testClientExceptionWithResponse() defined?
testClientExceptionWithResponse() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketHandshakeExceptionTest.java at line 41.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free