Home / Function/ testAutomaticStartStop() — netty Function Reference

testAutomaticStartStop() — netty Function Reference

Architecture documentation for the testAutomaticStartStop() function in GlobalEventExecutorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  18fde39f_bab9_995e_d922_cf54eb7ed932["testAutomaticStartStop()"]
  f5a88566_416e_7970_655d_74968e21adb8["GlobalEventExecutorTest"]
  18fde39f_bab9_995e_d922_cf54eb7ed932 -->|defined in| f5a88566_416e_7970_655d_74968e21adb8
  c3766603_5691_d3ab_0426_40fc291e9fe8["TestRunnable()"]
  18fde39f_bab9_995e_d922_cf54eb7ed932 -->|calls| c3766603_5691_d3ab_0426_40fc291e9fe8
  style 18fde39f_bab9_995e_d922_cf54eb7ed932 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/GlobalEventExecutorTest.java lines 48–71

    @Test
    @Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)
    public void testAutomaticStartStop() throws Exception {
        final TestRunnable task = new TestRunnable(500);
        e.execute(task);

        // Ensure the new thread has started.
        Thread thread = e.thread;
        assertNotNull(thread);
        assertTrue(thread.isAlive());

        thread.join();
        assertTrue(task.ran.get());

        // Ensure another new thread starts again.
        task.ran.set(false);
        e.execute(task);
        assertNotSame(e.thread, thread);
        thread = e.thread;

        thread.join();

        assertTrue(task.ran.get());
    }

Domain

Subdomains

Frequently Asked Questions

What does testAutomaticStartStop() do?
testAutomaticStartStop() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/GlobalEventExecutorTest.java.
Where is testAutomaticStartStop() defined?
testAutomaticStartStop() is defined in common/src/test/java/io/netty/util/concurrent/GlobalEventExecutorTest.java at line 48.
What does testAutomaticStartStop() call?
testAutomaticStartStop() calls 1 function(s): TestRunnable.

Analyze Your Own Codebase

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

Try Supermodel Free