Class UtilsTest

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

public class UtilsTest extends Object
Test class to test methods in Utils class.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Test for Utils.copyToByteBuffer(ByteBuf) method by making a full copy of the the ByteBuf and then confirming that the copy is correct.
    void
    Test for Utils.copyToByteBuffer(ByteBuf) method by making a slice copy of the the ByteBuf and then confirming that the slice copy is correct.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UtilsTest

      public UtilsTest()
  • Method Details

    • testCopyToByteBuffer

      @Test public void testCopyToByteBuffer()
      Test for Utils.copyToByteBuffer(ByteBuf) method by making a full copy of the the ByteBuf and then confirming that the copy is correct.
    • testSliceCopyToByteBuffer

      @Test public void testSliceCopyToByteBuffer()
      Test for Utils.copyToByteBuffer(ByteBuf) method by making a slice copy of the the ByteBuf and then confirming that the slice copy is correct.