testWrongPromiseChannel() — netty Function Reference
Architecture documentation for the testWrongPromiseChannel() function in DefaultChannelPipelineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a0189b5d_2a53_77b7_61dd_54dd00b91f04["testWrongPromiseChannel()"] 666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"] a0189b5d_2a53_77b7_61dd_54dd00b91f04 -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2 36fce318_f10e_2b70_4def_d189ac0af1ed["execute()"] a0189b5d_2a53_77b7_61dd_54dd00b91f04 -->|calls| 36fce318_f10e_2b70_4def_d189ac0af1ed 0734e696_bf2a_45af_707c_9731756d1f7d["close()"] a0189b5d_2a53_77b7_61dd_54dd00b91f04 -->|calls| 0734e696_bf2a_45af_707c_9731756d1f7d style a0189b5d_2a53_77b7_61dd_54dd00b91f04 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 899–919
@Test
public void testWrongPromiseChannel() throws Exception {
final ChannelPipeline pipeline = new LocalChannel().pipeline();
group.register(pipeline.channel()).sync();
ChannelPipeline pipeline2 = new LocalChannel().pipeline();
group.register(pipeline2.channel()).sync();
try {
final ChannelPromise promise2 = pipeline2.channel().newPromise();
assertThrows(IllegalArgumentException.class, new Executable() {
@Override
public void execute() {
pipeline.close(promise2);
}
});
} finally {
pipeline.close();
pipeline2.close();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testWrongPromiseChannel() do?
testWrongPromiseChannel() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testWrongPromiseChannel() defined?
testWrongPromiseChannel() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 899.
What does testWrongPromiseChannel() call?
testWrongPromiseChannel() calls 2 function(s): close, execute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free