Class ByteBufReceiveMultipleRequestBufferTest
java.lang.Object
org.apache.kafka.common.network.netty.ByteBufReceiveMultipleRequestBufferTest
Test class to test ByteBufReceive backing multiple buffers. We should
expect the first request to be parsed with second request pending reading/parsing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidvoidvoidTest that invoking readFrom second time with the remaining bytes reads the second request successfully.voidByteBufReceive should have only read the first request, leaving the second request in the buffer.
-
Constructor Details
-
ByteBufReceiveMultipleRequestBufferTest
public ByteBufReceiveMultipleRequestBufferTest()
-
-
Method Details
-
beforeAll
@BeforeAll public static void beforeAll() -
beforeEach
- Throws:
IOException
-
afterEach
@AfterEach public void afterEach() -
testParsesOnlyFirstRequest
@Test public void testParsesOnlyFirstRequest()ByteBufReceive should have only read the first request, leaving the second request in the buffer. -
testParseSecondRequest
@Test public void testParseSecondRequest()Test that invoking readFrom second time with the remaining bytes reads the second request successfully.
-