Home / Function/ testRunPendingTasksForNotRegisteredChannel() — netty Function Reference

testRunPendingTasksForNotRegisteredChannel() — netty Function Reference

Architecture documentation for the testRunPendingTasksForNotRegisteredChannel() function in EmbeddedChannelTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ab2c7fe7_93ac_fb43_9be7_7f6729188a1d["testRunPendingTasksForNotRegisteredChannel()"]
  300cabef_b042_697f_5623_37ce249f504d["EmbeddedChannelTest"]
  ab2c7fe7_93ac_fb43_9be7_7f6729188a1d -->|defined in| 300cabef_b042_697f_5623_37ce249f504d
  style ab2c7fe7_93ac_fb43_9be7_7f6729188a1d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 646–665

    @Test
    void testRunPendingTasksForNotRegisteredChannel() {
        final EmbeddedChannel channel = new EmbeddedChannel(false, false);
        long nextScheduledTaskTime = 0;
        try {
            nextScheduledTaskTime = channel.runScheduledPendingTasks();
            channel.checkException();
        } catch (Throwable t) {
            fail("Channel should not throw an exception for scheduled pending tasks if it is not registered", t);
        }

        assertEquals(-1L, nextScheduledTaskTime);

        try {
            channel.runPendingTasks();
            channel.checkException();
        } catch (Throwable t) {
            fail("Channel should not throw an exception for pending tasks if it is not registered", t);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testRunPendingTasksForNotRegisteredChannel() do?
testRunPendingTasksForNotRegisteredChannel() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is testRunPendingTasksForNotRegisteredChannel() defined?
testRunPendingTasksForNotRegisteredChannel() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 646.

Analyze Your Own Codebase

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

Try Supermodel Free