Class AbstractListAssert<T,​U extends java.util.List<? extends T>,​V extends GenericListAssert<T,​U,​V>>

    • Constructor Detail

      • AbstractListAssert

        public AbstractListAssert()
    • Method Detail

      • contains

        public V contains​(T value,
                          int index)
        Description copied from interface: GenericListAssert
        Verifies that the List contains the given value at the given index.
        Specified by:
        contains in interface GenericListAssert<T,​U extends java.util.List<? extends T>,​V extends GenericListAssert<T,​U,​V>>
        Parameters:
        value - the value
        index - the index
        Returns:
        the list assert
      • doesNotContain

        public V doesNotContain​(T value,
                                int index)
        Description copied from interface: GenericListAssert
        Verifies that the List does not contain the given value at the given index.
        Specified by:
        doesNotContain in interface GenericListAssert<T,​U extends java.util.List<? extends T>,​V extends GenericListAssert<T,​U,​V>>
        Parameters:
        value - the value
        index - the index
        Returns:
        the list assert
      • hasSameSizeAs

        public U hasSameSizeAs​(java.lang.Iterable<?> other)
        Description copied from interface: EnumerableAssert
        Verifies that the enumerable has the same size as the other.
        Specified by:
        hasSameSizeAs in interface EnumerableAssert<T,​U extends EnumerableAssert<T,​U>>
        Parameters:
        other - the other
        Returns:
        the enumerable assert
      • hasSameSizeAs

        public U hasSameSizeAs​(java.lang.Object array)
        Description copied from interface: EnumerableAssert
        Verifies that the enumerable has the same size as the array.
        Specified by:
        hasSameSizeAs in interface EnumerableAssert<T,​U extends EnumerableAssert<T,​U>>
        Parameters:
        array - the other
        Returns:
        the enumerable assert
      • hasSize

        public U hasSize​(int expected)
        Description copied from interface: EnumerableAssert
        Verifies that the enumerable has the expected size.
        Specified by:
        hasSize in interface EnumerableAssert<T,​U extends EnumerableAssert<T,​U>>
        Parameters:
        expected - the array
        Returns:
        the enumerable assert