Class ReadableByteBufMultipleRequestBufferTest

java.lang.Object
org.apache.kafka.common.network.netty.ReadableByteBufMultipleRequestBufferTest

public class ReadableByteBufMultipleRequestBufferTest extends Object
Test class to test ReadableByteBuf backing multiple buffers. We should expect the first request to be parsed with second request pending reading/parsing.
  • Constructor Details

    • ReadableByteBufMultipleRequestBufferTest

      public ReadableByteBufMultipleRequestBufferTest()
  • Method Details

    • beforeAll

      @BeforeAll public static void beforeAll()
    • beforeEach

      @BeforeEach public void beforeEach() throws IOException
      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.