Class BufferAssert

  • All Implemented Interfaces:
    org.assertj.core.api.Assert<BufferAssert,​org.agrona.DirectBuffer>, org.assertj.core.api.Descriptable<BufferAssert>, org.assertj.core.api.ExtensionPoints<BufferAssert,​org.agrona.DirectBuffer>

    public class BufferAssert
    extends org.assertj.core.api.AbstractAssert<BufferAssert,​org.agrona.DirectBuffer>
    • Field Summary

      • Fields inherited from class org.assertj.core.api.AbstractAssert

        actual, info, myself, throwUnsupportedExceptionOnEquals
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BufferAssert​(org.agrona.DirectBuffer actual)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static BufferAssert assertThatBuffer​(org.agrona.DirectBuffer buffer)  
      BufferAssert hasBytes​(byte[] expected)  
      BufferAssert hasBytes​(byte[] expected, int position)  
      BufferAssert hasBytes​(BufferWriter writer)  
      BufferAssert hasBytes​(org.agrona.DirectBuffer buffer)  
      BufferAssert hasBytes​(org.agrona.DirectBuffer buffer, int offset, int length)  
      BufferAssert hasCapacity​(int expectedCapacity)  
      • Methods inherited from class org.assertj.core.api.AbstractAssert

        as, as, asInstanceOf, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
    • Constructor Detail

      • BufferAssert

        protected BufferAssert​(org.agrona.DirectBuffer actual)
    • Method Detail

      • assertThatBuffer

        public static BufferAssert assertThatBuffer​(org.agrona.DirectBuffer buffer)
      • hasBytes

        public BufferAssert hasBytes​(byte[] expected,
                                     int position)
      • hasBytes

        public BufferAssert hasBytes​(byte[] expected)
      • hasBytes

        public BufferAssert hasBytes​(org.agrona.DirectBuffer buffer,
                                     int offset,
                                     int length)
      • hasBytes

        public BufferAssert hasBytes​(org.agrona.DirectBuffer buffer)
      • hasCapacity

        public BufferAssert hasCapacity​(int expectedCapacity)