Home / Function/ testCloseFutureNotified() — netty Function Reference

testCloseFutureNotified() — netty Function Reference

Architecture documentation for the testCloseFutureNotified() function in SslHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f1045cb4_27e3_90b7_abe9_e0fb3b3d4396["testCloseFutureNotified()"]
  adaf7dc7_94e2_152f_ffdb_453fdaa4f25e["SslHandlerTest"]
  f1045cb4_27e3_90b7_abe9_e0fb3b3d4396 -->|defined in| adaf7dc7_94e2_152f_ffdb_453fdaa4f25e
  style f1045cb4_27e3_90b7_abe9_e0fb3b3d4396 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java lines 546–563

    @Test
    public void testCloseFutureNotified() throws Exception {
        SSLEngine engine = newServerModeSSLEngine();
        SslHandler handler = new SslHandler(engine);
        EmbeddedChannel ch = new EmbeddedChannel(handler);

        ch.close();

        // When the channel is closed the SslHandler will write an empty buffer to the channel.
        ByteBuf buf = ch.readOutbound();
        assertFalse(buf.isReadable());
        buf.release();

        assertFalse(ch.finishAndReleaseAll());

        assertInstanceOf(ClosedChannelException.class, handler.handshakeFuture().cause());
        assertInstanceOf(ClosedChannelException.class, handler.sslCloseFuture().cause());
    }

Domain

Subdomains

Frequently Asked Questions

What does testCloseFutureNotified() do?
testCloseFutureNotified() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java.
Where is testCloseFutureNotified() defined?
testCloseFutureNotified() is defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java at line 546.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free