Interface IndexedObjectEnumerableAssert<S extends IndexedObjectEnumerableAssert<S,​T>,​T>

    • Method Detail

      • contains

        S contains​(T value,
                   Index index)
        Verifies that the actual group contains the given object at the given index.
        Parameters:
        value - the object to look for.
        index - the index where the object should be stored in the actual group.
        Returns:
        this assertion object.
        Throws:
        java.lang.AssertionError - if the actual group is null or empty.
        java.lang.NullPointerException - if the given Index is null.
        java.lang.IndexOutOfBoundsException - if the value of the given Index is equal to or greater than the size of the actual group.
        java.lang.AssertionError - if the actual group does not contain the given object at the given index.
      • doesNotContain

        S doesNotContain​(T value,
                         Index index)
        Verifies that the actual group does not contain the given object at the given index.
        Parameters:
        value - the object to look for.
        index - the index where the object should be stored in the actual group.
        Returns:
        this assertion object.
        Throws:
        java.lang.AssertionError - if the actual group is null.
        java.lang.NullPointerException - if the given Index is null.
        java.lang.AssertionError - if the actual group contains the given object at the given index.