setup() — netty Function Reference
Architecture documentation for the setup() function in MqttCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bb43b4a2_1129_0c9f_c917_14a03c1f59a3["setup()"] f4aba1d9_6b30_ec96_9eaa_4c5557b5796d["MqttCodecTest"] bb43b4a2_1129_0c9f_c917_14a03c1f59a3 -->|defined in| f4aba1d9_6b30_ec96_9eaa_4c5557b5796d style bb43b4a2_1129_0c9f_c917_14a03c1f59a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttCodecTest.java lines 108–118
@BeforeEach
public void setup() {
MockitoAnnotations.initMocks(this);
when(ctx.channel()).thenReturn(channel);
when(ctx.alloc()).thenReturn(ALLOCATOR);
when(ctx.fireChannelRead(any())).then((Answer<ChannelHandlerContext>) invocation -> {
out.add(invocation.getArguments()[0]);
return ctx;
});
when(channel.attr(MqttCodecUtil.MQTT_VERSION_KEY)).thenReturn(versionAttrMock);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setup() do?
setup() is a function in the netty codebase, defined in codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttCodecTest.java.
Where is setup() defined?
setup() is defined in codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttCodecTest.java at line 108.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free