Class BytesTest

java.lang.Object
org.apache.kafka.common.utils.BytesTest

public class BytesTest extends Object
  • Constructor Details

    • BytesTest

      public BytesTest()
  • Method Details

    • equalsReflectsContentIdentityAndType

      @Test public void equalsReflectsContentIdentityAndType()
    • hashCodeIsConsistentAndContentBased

      @Test public void hashCodeIsConsistentAndContentBased()
    • compareToReflectsLexicographicUnsignedOrdering

      @Test public void compareToReflectsLexicographicUnsignedOrdering()
    • wrapReturnsBytesBackedBySameArray

      @Test public void wrapReturnsBytesBackedBySameArray()
    • wrapReturnsNullForNullInput

      @Test public void wrapReturnsNullForNullInput()
    • wrapEmptyArrayProducesEmptyBytes

      @Test public void wrapEmptyArrayProducesEmptyBytes()
    • constructorThrowsForNullInput

      @Test public void constructorThrowsForNullInput()
    • getReturnsUnderlyingArray

      @Test public void getReturnsUnderlyingArray()