Class ReadableByteBufMultipleRequestBufferTest
java.lang.Object
org.apache.kafka.common.network.netty.ReadableByteBufMultipleRequestBufferTest
Test class to test ReadableByteBuf 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
-
ReadableByteBufMultipleRequestBufferTest
public ReadableByteBufMultipleRequestBufferTest()
-
-
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.
-