testCloseFrameSentWhenServerChannelClosedSilently() — netty Function Reference
Architecture documentation for the testCloseFrameSentWhenServerChannelClosedSilently() function in WebSocketServerProtocolHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 835c88de_25bc_468d_7485_a85237cb84f7["testCloseFrameSentWhenServerChannelClosedSilently()"] 7afc952d_7109_096b_f81d_bf3293e37581["WebSocketServerProtocolHandlerTest"] 835c88de_25bc_468d_7485_a85237cb84f7 -->|defined in| 7afc952d_7109_096b_f81d_bf3293e37581 style 835c88de_25bc_468d_7485_a85237cb84f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java lines 328–351
@Test
public void testCloseFrameSentWhenServerChannelClosedSilently() throws Exception {
EmbeddedChannel client = createClient();
EmbeddedChannel server = createServer();
assertFalse(server.writeInbound(client.<ByteBuf>readOutbound()));
assertFalse(client.writeInbound(server.<ByteBuf>readOutbound()));
// When server channel closed without explicit close-frame
server.close();
// Then client receives NORMAL_CLOSURE close-frame
assertTrue(client.writeInbound(server.<ByteBuf>readOutbound()));
assertFalse(server.isOpen());
CloseWebSocketFrame closeMessage = client.readInbound();
assertEquals(closeMessage.statusCode(), WebSocketCloseStatus.NORMAL_CLOSURE.code());
closeMessage.release();
client.close();
assertTrue(ReferenceCountUtil.release(client.readOutbound()));
assertFalse(client.finishAndReleaseAll());
assertFalse(server.finishAndReleaseAll());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testCloseFrameSentWhenServerChannelClosedSilently() do?
testCloseFrameSentWhenServerChannelClosedSilently() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java.
Where is testCloseFrameSentWhenServerChannelClosedSilently() defined?
testCloseFrameSentWhenServerChannelClosedSilently() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java at line 328.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free