Home / Class/ DelegatingChannelPromiseNotifierTest Class — netty Architecture

DelegatingChannelPromiseNotifierTest Class — netty Architecture

Architecture documentation for the DelegatingChannelPromiseNotifierTest class in DelegatingChannelPromiseNotifierTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c92c5c9f_4c87_4a7b_332d_83027e995691["DelegatingChannelPromiseNotifierTest"]
  2165bab3_1994_34e9_7001_1f365dcaf0dd["DelegatingChannelPromiseNotifierTest.java"]
  c92c5c9f_4c87_4a7b_332d_83027e995691 -->|defined in| 2165bab3_1994_34e9_7001_1f365dcaf0dd
  13f61714_5e42_9f10_45aa_41e368b29164["varargsNotifiersAllowed()"]
  c92c5c9f_4c87_4a7b_332d_83027e995691 -->|method| 13f61714_5e42_9f10_45aa_41e368b29164

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DelegatingChannelPromiseNotifierTest.java lines 23–37

public class DelegatingChannelPromiseNotifierTest {
    @Test
    public void varargsNotifiersAllowed() {
        ChannelPromise promise = Mockito.mock(ChannelPromise.class);
        DelegatingChannelPromiseNotifier promiseNotifier = new DelegatingChannelPromiseNotifier(promise);

        GenericFutureListener<? extends Future<? super Void>> gfl =
                (GenericFutureListener<? extends Future<? super Void>>) Mockito.mock(GenericFutureListener.class);
        promiseNotifier.addListeners(gfl);
        promiseNotifier.removeListeners(gfl);

        Mockito.verify(promise).addListeners(gfl);
        Mockito.verify(promise).removeListeners(gfl);
    }
}

Frequently Asked Questions

What is the DelegatingChannelPromiseNotifierTest class?
DelegatingChannelPromiseNotifierTest is a class in the netty codebase, defined in transport/src/test/java/io/netty/channel/DelegatingChannelPromiseNotifierTest.java.
Where is DelegatingChannelPromiseNotifierTest defined?
DelegatingChannelPromiseNotifierTest is defined in transport/src/test/java/io/netty/channel/DelegatingChannelPromiseNotifierTest.java at line 23.

Analyze Your Own Codebase

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

Try Supermodel Free