testChannelAcquiredException() — netty Function Reference
Architecture documentation for the testChannelAcquiredException() function in FixedChannelPoolTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4a3002ce_9a79_62e8_9aca_5fa1761a2a43["testChannelAcquiredException()"] 92761f16_3144_6791_29c9_00f65a091a8f["FixedChannelPoolTest"] 4a3002ce_9a79_62e8_9aca_5fa1761a2a43 -->|defined in| 92761f16_3144_6791_29c9_00f65a091a8f 51072731_07f9_1b58_9767_027487dbc46f["channelCreated()"] 4a3002ce_9a79_62e8_9aca_5fa1761a2a43 -->|calls| 51072731_07f9_1b58_9767_027487dbc46f style 4a3002ce_9a79_62e8_9aca_5fa1761a2a43 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java lines 288–316
@Test
public void testChannelAcquiredException() throws InterruptedException {
Tuple t = bootstrap();
// Start server
Channel sc = t.sb.bind(t.address).syncUninterruptibly().channel();
final NullPointerException exception = new NullPointerException();
FixedChannelPool pool = new FixedChannelPool(t.cb, new ChannelPoolHandler() {
@Override
public void channelReleased(Channel ch) {
}
@Override
public void channelAcquired(Channel ch) {
throw exception;
}
@Override
public void channelCreated(Channel ch) {
}
}, 2);
try {
pool.acquire().sync();
} catch (NullPointerException e) {
assertSame(e, exception);
}
sc.close().sync();
pool.close();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testChannelAcquiredException() do?
testChannelAcquiredException() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java.
Where is testChannelAcquiredException() defined?
testChannelAcquiredException() is defined in transport/src/test/java/io/netty/channel/pool/FixedChannelPoolTest.java at line 288.
What does testChannelAcquiredException() call?
testChannelAcquiredException() calls 1 function(s): channelCreated.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free