Class NettyHttp2ConnectionTest
java.lang.Object
org.apache.kafka.common.network.netty.NettyClientTestBase
org.apache.kafka.common.network.netty.NettyHttp2ConnectionTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidTest that the connection gets closed immediately if there are no active streams on the connection.voidTest that the connection on idle only closes connections when all active streams close.voidTest that if server sends a GOAWAY its correctly reflected in the state of clients HTTP/2 connection.voidvoidMake sure if stream creation fails, we complete the future with errorMethods inherited from class NettyClientTestBase
acceptAllSslContext, createStreamRequest, createStreamRequest, serverAddress
-
Constructor Details
-
NettyHttp2ConnectionTest
public NettyHttp2ConnectionTest()
-
-
Method Details
-
setupClient
-
closeClient
@AfterEach public void closeClient() -
testStreamCreation
-
testStreamCreationFails
@Test public void testStreamCreationFails()Make sure if stream creation fails, we complete the future with error -
testCloseOnIdleNoActiveStreams
Test that the connection gets closed immediately if there are no active streams on the connection.- Throws:
InterruptedException
-
testCloseOnIdleWithActiveStreams
-
testGoAwayReceived
-