Home / Function/ testDecorateThreadFactory() — netty Function Reference

testDecorateThreadFactory() — netty Function Reference

Architecture documentation for the testDecorateThreadFactory() function in ThreadExecutorMapTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  10aed0e7_2b9a_fd3c_2a66_196949ebef17["testDecorateThreadFactory()"]
  e711bd4e_54fa_d697_1f69_ed30e6807d36["ThreadExecutorMapTest"]
  10aed0e7_2b9a_fd3c_2a66_196949ebef17 -->|defined in| e711bd4e_54fa_d697_1f69_ed30e6807d36
  style 10aed0e7_2b9a_fd3c_2a66_196949ebef17 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/ThreadExecutorMapTest.java lines 121–133

    @Test
    public void testDecorateThreadFactory() throws InterruptedException {
        ThreadFactory threadFactory =
                ThreadExecutorMap.apply(Executors.defaultThreadFactory(), ImmediateEventExecutor.INSTANCE);
        Thread thread = threadFactory.newThread(new Runnable() {
            @Override
            public void run() {
                assertSame(ImmediateEventExecutor.INSTANCE, ThreadExecutorMap.currentExecutor());
            }
        });
        thread.start();
        thread.join();
    }

Domain

Subdomains

Frequently Asked Questions

What does testDecorateThreadFactory() do?
testDecorateThreadFactory() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/ThreadExecutorMapTest.java.
Where is testDecorateThreadFactory() defined?
testDecorateThreadFactory() is defined in common/src/test/java/io/netty/util/internal/ThreadExecutorMapTest.java at line 121.

Analyze Your Own Codebase

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

Try Supermodel Free