testIncompleteWriteDoesNotCompletePromisePrematurely() — netty Function Reference
Architecture documentation for the testIncompleteWriteDoesNotCompletePromisePrematurely() function in SslHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 098fffee_511d_867f_97d5_836761113930["testIncompleteWriteDoesNotCompletePromisePrematurely()"] adaf7dc7_94e2_152f_ffdb_453fdaa4f25e["SslHandlerTest"] 098fffee_511d_867f_97d5_836761113930 -->|defined in| adaf7dc7_94e2_152f_ffdb_453fdaa4f25e style 098fffee_511d_867f_97d5_836761113930 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java lines 378–390
@Test
public void testIncompleteWriteDoesNotCompletePromisePrematurely() throws NoSuchAlgorithmException {
SSLEngine engine = newServerModeSSLEngine();
EmbeddedChannel ch = new EmbeddedChannel(new SslHandler(engine));
ChannelPromise promise = ch.newPromise();
ByteBuf buf = Unpooled.buffer(10).writeZero(10);
ch.writeAndFlush(buf, promise);
assertFalse(promise.isDone());
assertTrue(ch.finishAndReleaseAll());
assertTrue(promise.isDone());
assertInstanceOf(SSLException.class, promise.cause());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testIncompleteWriteDoesNotCompletePromisePrematurely() do?
testIncompleteWriteDoesNotCompletePromisePrematurely() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java.
Where is testIncompleteWriteDoesNotCompletePromisePrematurely() defined?
testIncompleteWriteDoesNotCompletePromisePrematurely() is defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java at line 378.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free