Home / Function/ testIsActiveFalseAfterClose() — netty Function Reference

testIsActiveFalseAfterClose() — netty Function Reference

Architecture documentation for the testIsActiveFalseAfterClose() function in NioServerDomainSocketChannelTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3d3805fb_f11a_fcf0_f393_35f30687a246["testIsActiveFalseAfterClose()"]
  c690aba4_88d4_67bf_6e0a_2ef650c45464["NioServerDomainSocketChannelTest"]
  3d3805fb_f11a_fcf0_f393_35f30687a246 -->|defined in| c690aba4_88d4_67bf_6e0a_2ef650c45464
  5a90c6c5_4f4f_1e97_1d6b_bb30ea1d9232["NioServerDomainSocketChannel()"]
  3d3805fb_f11a_fcf0_f393_35f30687a246 -->|calls| 5a90c6c5_4f4f_1e97_1d6b_bb30ea1d9232
  style 3d3805fb_f11a_fcf0_f393_35f30687a246 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/socket/nio/NioServerDomainSocketChannelTest.java lines 64–83

    @Test
    public void testIsActiveFalseAfterClose() throws Exception {
        NioServerDomainSocketChannel serverSocketChannel = new NioServerDomainSocketChannel();
        EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, NioIoHandler.newFactory());
        File file = newRandomTmpFile();
        try {
            group.register(serverSocketChannel).syncUninterruptibly();
            Channel channel = serverSocketChannel.bind(
                    newUnixDomainSocketAddress(file.getAbsolutePath()))
                    .syncUninterruptibly().channel();
            assertTrue(channel.isActive());
            assertTrue(channel.isOpen());
            channel.close().syncUninterruptibly();
            assertFalse(channel.isOpen());
            assertFalse(channel.isActive());
        } finally {
            group.shutdownGracefully();
            file.delete();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testIsActiveFalseAfterClose() do?
testIsActiveFalseAfterClose() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/socket/nio/NioServerDomainSocketChannelTest.java.
Where is testIsActiveFalseAfterClose() defined?
testIsActiveFalseAfterClose() is defined in transport/src/test/java/io/netty/channel/socket/nio/NioServerDomainSocketChannelTest.java at line 64.
What does testIsActiveFalseAfterClose() call?
testIsActiveFalseAfterClose() calls 1 function(s): NioServerDomainSocketChannel.

Analyze Your Own Codebase

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

Try Supermodel Free