Class DefaultRecordTest

java.lang.Object
org.apache.kafka.common.record.internal.DefaultRecordTest

public class DefaultRecordTest extends Object
  • Constructor Details

    • DefaultRecordTest

      public DefaultRecordTest()
  • Method Details

    • testBasicSerde

      @Test public void testBasicSerde() throws IOException
      Throws:
      IOException
    • testBasicSerdeInvalidHeaderCountTooHigh

      @Test public void testBasicSerdeInvalidHeaderCountTooHigh() throws IOException
      Throws:
      IOException
    • testBasicSerdeInvalidHeaderCountTooLow

      @Test public void testBasicSerdeInvalidHeaderCountTooLow() throws IOException
      Throws:
      IOException
    • testInvalidKeySize

      @Test public void testInvalidKeySize() throws IOException
      Throws:
      IOException
    • testInvalidKeySizePartial

      @Test public void testInvalidKeySizePartial() throws IOException
      Throws:
      IOException
    • testInvalidValueSize

      @Test public void testInvalidValueSize() throws IOException
      Throws:
      IOException
    • testInvalidValueSizePartial

      @Test public void testInvalidValueSizePartial() throws IOException
      Throws:
      IOException
    • testInvalidNumHeaders

      @Test public void testInvalidNumHeaders() throws IOException
      Throws:
      IOException
    • testInvalidNumHeadersPartial

      @Test public void testInvalidNumHeadersPartial() throws IOException
      Throws:
      IOException
    • testReadPartiallyFromSkipsKeyAndValueWithoutMaterializing

      @Test public void testReadPartiallyFromSkipsKeyAndValueWithoutMaterializing() throws IOException
      Throws:
      IOException
    • testInvalidHeaderKey

      @Test public void testInvalidHeaderKey() throws IOException
      Throws:
      IOException
    • testInvalidHeaderKeyPartial

      @Test public void testInvalidHeaderKeyPartial() throws IOException
      Throws:
      IOException
    • testNullHeaderKey

      @Test public void testNullHeaderKey() throws IOException
      Throws:
      IOException
    • testNullHeaderKeyPartial

      @Test public void testNullHeaderKeyPartial() throws IOException
      Throws:
      IOException
    • testInvalidHeaderValue

      @Test public void testInvalidHeaderValue() throws IOException
      Throws:
      IOException
    • testInvalidHeaderValuePartial

      @Test public void testInvalidHeaderValuePartial() throws IOException
      Throws:
      IOException
    • testUnderflowReadingTimestamp

      @Test public void testUnderflowReadingTimestamp() throws IOException
      Throws:
      IOException
    • testUnderflowReadingVarlong

      @Test public void testUnderflowReadingVarlong() throws IOException
      Throws:
      IOException
    • testInvalidVarlong

      @Test public void testInvalidVarlong() throws IOException
      Throws:
      IOException
    • testSerdeNoSequence

      @Test public void testSerdeNoSequence() throws IOException
      Throws:
      IOException
    • testInvalidSizeOfBodyInBytes

      @Test public void testInvalidSizeOfBodyInBytes() throws IOException
      Throws:
      IOException
    • testReadPartiallyFromConsumesExactlyOneRecord

      @Test public void testReadPartiallyFromConsumesExactlyOneRecord() throws IOException
      Throws:
      IOException
    • testReadPartiallyRejectsUndersizedBody

      @Test public void testReadPartiallyRejectsUndersizedBody() throws IOException
      Throws:
      IOException
    • testReadPartiallyRejectsOversizedBody

      @Test public void testReadPartiallyRejectsOversizedBody() throws IOException
      Throws:
      IOException
    • testReadPartiallyRejectsNonCanonicalVarintPadding

      @Test public void testReadPartiallyRejectsNonCanonicalVarintPadding() throws IOException
      Throws:
      IOException
    • testReadFromStreamRejectsInvalidBodySize

      @Test public void testReadFromStreamRejectsInvalidBodySize() throws IOException
      Throws:
      IOException
    • testReadPartiallyFromStreamRejectsInvalidBodySize

      @Test public void testReadPartiallyFromStreamRejectsInvalidBodySize() throws IOException
      Throws:
      IOException
    • testReadFromStreamRejectsBodySizeExceedingConfiguredMax

      @Test public void testReadFromStreamRejectsBodySizeExceedingConfiguredMax() throws IOException
      Throws:
      IOException
    • testReadPartiallyFromStreamRejectsBodySizeExceedingConfiguredMax

      @Test public void testReadPartiallyFromStreamRejectsBodySizeExceedingConfiguredMax() throws IOException
      Throws:
      IOException
    • testReadFromStreamWithConfiguredMaxAcceptsValidRecordAndRejectsWhenTooSmall

      @Test public void testReadFromStreamWithConfiguredMaxAcceptsValidRecordAndRejectsWhenTooSmall() throws IOException
      Throws:
      IOException