Home / Function/ testCallFromWrongThread() — netty Function Reference

testCallFromWrongThread() — netty Function Reference

Architecture documentation for the testCallFromWrongThread() function in ManualIoEventLoopTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7a6f419c_ba11_ae43_3231_f82972a9099d["testCallFromWrongThread()"]
  7f1091cc_a8b6_0293_92ad_d94222ae6482["ManualIoEventLoopTest"]
  7a6f419c_ba11_ae43_3231_f82972a9099d -->|defined in| 7f1091cc_a8b6_0293_92ad_d94222ae6482
  3bf16ebe_cf8d_923f_9559_397075f9b2a1["TestIoHandler()"]
  7a6f419c_ba11_ae43_3231_f82972a9099d -->|calls| 3bf16ebe_cf8d_923f_9559_397075f9b2a1
  a184d64e_5ebb_5009_edad_a36cf4e3aea8["run()"]
  7a6f419c_ba11_ae43_3231_f82972a9099d -->|calls| a184d64e_5ebb_5009_edad_a36cf4e3aea8
  style 7a6f419c_ba11_ae43_3231_f82972a9099d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java lines 114–123

    @Test
    public void testCallFromWrongThread() throws Exception {
        Thread thread = new Thread();
        Semaphore semaphore = new Semaphore(0);
        ManualIoEventLoop eventLoop = new ManualIoEventLoop(thread, executor ->
                new TestIoHandler(semaphore));

        assertThrows(IllegalStateException.class, eventLoop::runNow);
        assertThrows(IllegalStateException.class, () -> eventLoop.run(10));
    }

Domain

Subdomains

Frequently Asked Questions

What does testCallFromWrongThread() do?
testCallFromWrongThread() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java.
Where is testCallFromWrongThread() defined?
testCallFromWrongThread() is defined in transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java at line 114.
What does testCallFromWrongThread() call?
testCallFromWrongThread() calls 2 function(s): TestIoHandler, run.

Analyze Your Own Codebase

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

Try Supermodel Free