Uses of Class
org.assertj.core.data.Index
-
Packages that use Index Package Description org.assertj.core.api org.assertj.core.data org.assertj.core.error org.assertj.core.internal -
-
Uses of Index in org.assertj.core.api
Methods in org.assertj.core.api that return Index Modifier and Type Method Description static Index
Assertions. atIndex(int index)
Only delegate toatIndex(int)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useIndex
if you prefer).static Index
AssertionsForClassTypes. atIndex(int index)
Only delegate toatIndex(int)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useIndex
if you prefer).static Index
Java6Assertions. atIndex(int index)
Deprecated.Only delegate toatIndex(int)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useIndex
if you prefer).default Index
WithAssertions. atIndex(int index)
Only delegate toatIndex(int)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useIndex
if you prefer).Methods in org.assertj.core.api with parameters of type Index Modifier and Type Method Description SELF
AbstractBooleanArrayAssert. contains(boolean value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractByteArrayAssert. contains(byte value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractByteArrayAssert. contains(int value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractCharArrayAssert. contains(char value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractDoubleArrayAssert. contains(double value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractDoubleArrayAssert. contains(double value, Index index, Offset<java.lang.Double> precision)
Verifies that the actual array contains the given value at the given index.SELF
AbstractFloatArrayAssert. contains(float value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractFloatArrayAssert. contains(float value, Index index, Offset<java.lang.Float> precision)
Verifies that the actual array contains the given value at the given index.SELF
AbstractIntArrayAssert. contains(int value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractListAssert. contains(ELEMENT value, Index index)
Verifies that the actual group contains the given object at the given index.SELF
AbstractLongArrayAssert. contains(long value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractObjectArrayAssert. contains(ELEMENT value, Index index)
Verifies that the actual array contains the given object at the given index.SELF
AbstractShortArrayAssert. contains(int value, Index index)
Verifies that the actual array contains the given value at the given index.SELF
AbstractShortArrayAssert. contains(short value, Index index)
Verifies that the actual array contains the given value at the given index.AtomicIntegerArrayAssert
AtomicIntegerArrayAssert. contains(int value, Index index)
Verifies that the actual atomic array contains the given value at the given index.AtomicLongArrayAssert
AtomicLongArrayAssert. contains(long value, Index index)
Verifies that the actual atomic array contains the given value at the given index.AtomicReferenceArrayAssert<T>
AtomicReferenceArrayAssert. contains(T value, Index index)
Verifies that the actual AtomicReferenceArray contains the given object at the given index.Boolean2DArrayAssert
Boolean2DArrayAssert. contains(boolean[] value, Index index)
Verifies that the actualboolean[][]
contains the given boolean[] at the given index.Byte2DArrayAssert
Byte2DArrayAssert. contains(byte[] value, Index index)
Verifies that the actualbyte[][]
contains the given byte[] at the given index.Char2DArrayAssert
Char2DArrayAssert. contains(char[] value, Index index)
Verifies that the actualchar[][]
contains the given char[] at the given index.Double2DArrayAssert
Double2DArrayAssert. contains(double[] value, Index index)
Verifies that the actualdouble[][]
contains the given double[] at the given index.Float2DArrayAssert
Float2DArrayAssert. contains(float[] value, Index index)
Verifies that the actual array contains the given float[] at the given index.SELF
IndexedObjectEnumerableAssert. contains(ELEMENT value, Index index)
Verifies that the actual group contains the given object at the given index.Int2DArrayAssert
Int2DArrayAssert. contains(int[] value, Index index)
Verifies that the actual array contains the given int[] at the given index.Long2DArrayAssert
Long2DArrayAssert. contains(long[] value, Index index)
Verifies that the actual array contains the given long[] at the given index.Object2DArrayAssert<ELEMENT>
Object2DArrayAssert. contains(ELEMENT[] value, Index index)
Verifies that the actual ELEMENT[][] contains the given ELEMENT[] at the given index.Short2DArrayAssert
Short2DArrayAssert. contains(int[] value, Index index)
Verifies that the actualshort[][]
contains the given short[] at the given index.Short2DArrayAssert
Short2DArrayAssert. contains(short[] value, Index index)
Verifies that the actualshort[][]
contains the given short[] at the given index.SELF
AbstractBooleanArrayAssert. doesNotContain(boolean value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractByteArrayAssert. doesNotContain(byte value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractByteArrayAssert. doesNotContain(int value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractCharArrayAssert. doesNotContain(char value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractDoubleArrayAssert. doesNotContain(double value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractDoubleArrayAssert. doesNotContain(double value, Index index, Offset<java.lang.Double> precision)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractFloatArrayAssert. doesNotContain(float value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractFloatArrayAssert. doesNotContain(float value, Index index, Offset<java.lang.Float> precision)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractIntArrayAssert. doesNotContain(int value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractListAssert. doesNotContain(ELEMENT value, Index index)
Verifies that the actual group does not contain the given object at the given index.SELF
AbstractLongArrayAssert. doesNotContain(long value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractObjectArrayAssert. doesNotContain(ELEMENT value, Index index)
Verifies that the actual array does not contain the given object at the given index.SELF
AbstractShortArrayAssert. doesNotContain(int value, Index index)
Verifies that the actual array does not contain the given value at the given index.SELF
AbstractShortArrayAssert. doesNotContain(short value, Index index)
Verifies that the actual array does not contain the given value at the given index.AtomicIntegerArrayAssert
AtomicIntegerArrayAssert. doesNotContain(int value, Index index)
Verifies that the actual atomic array does not contain the given value at the given index.AtomicLongArrayAssert
AtomicLongArrayAssert. doesNotContain(long value, Index index)
Verifies that the actual atomic array does not contain the given value at the given index.AtomicReferenceArrayAssert<T>
AtomicReferenceArrayAssert. doesNotContain(T value, Index index)
Verifies that the actual AtomicReferenceArray does not contain the given object at the given index.Boolean2DArrayAssert
Boolean2DArrayAssert. doesNotContain(boolean[] value, Index index)
Verifies that the actualboolean[][]
does not contain the given boolean[] at the given index.Byte2DArrayAssert
Byte2DArrayAssert. doesNotContain(byte[] value, Index index)
Verifies that the actualbyte[][]
does not contain the given byte[] at the given index.Char2DArrayAssert
Char2DArrayAssert. doesNotContain(char[] value, Index index)
Verifies that the actualchar[][]
does not contain the given char[] at the given index.Double2DArrayAssert
Double2DArrayAssert. doesNotContain(double[] value, Index index)
Verifies that the actualdouble[][]
does not contain the given double[] at the given index.Float2DArrayAssert
Float2DArrayAssert. doesNotContain(float[] value, Index index)
Verifies that the actual array does not contain the given float[] at the given index.SELF
IndexedObjectEnumerableAssert. doesNotContain(ELEMENT value, Index index)
Verifies that the actual group does not contain the given object at the given index.Int2DArrayAssert
Int2DArrayAssert. doesNotContain(int[] value, Index index)
Verifies that the actual array does not contain the given value at the given index.Long2DArrayAssert
Long2DArrayAssert. doesNotContain(long[] value, Index index)
Verifies that the actual array does not contain the given long[] at the given index.Object2DArrayAssert<ELEMENT>
Object2DArrayAssert. doesNotContain(ELEMENT[] value, Index index)
Verifies that the actual ELEMENT[][] does not contain the given ELEMENT[] at the given index.Short2DArrayAssert
Short2DArrayAssert. doesNotContain(int[] value, Index index)
Verifies that the actualshort[][]
does not contain the given short[] at the given index.Short2DArrayAssert
Short2DArrayAssert. doesNotContain(short[] value, Index index)
Verifies that the actualshort[][]
does not contain the given short[] at the given index.SELF
AbstractListAssert. has(Condition<? super ELEMENT> condition, Index index)
Verifies that the actual object at the given index in the actual group satisfies the given condition.SELF
AbstractListAssert. is(Condition<? super ELEMENT> condition, Index index)
Verifies that the actual object at the given index in the actual group satisfies the given condition.SELF
AbstractListAssert. satisfies(java.util.function.Consumer<? super ELEMENT> requirements, Index index)
Verifies that the actualList
contains a value at givenIndex
that satisfies the givenrequirements
. -
Uses of Index in org.assertj.core.data
Methods in org.assertj.core.data that return Index Modifier and Type Method Description static Index
Index. atIndex(int value)
Creates a newIndex
. -
Uses of Index in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type Index Modifier and Type Method Description static <T> ErrorMessageFactory
ShouldBeAtIndex. shouldBeAtIndex(java.util.List<? extends T> actual, Condition<? super T> condition, Index index, T found)
Creates a new
.ShouldBeAtIndex
static ErrorMessageFactory
ShouldContainAtIndex. shouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found)
Creates a new
.ShouldContainAtIndex
static ErrorMessageFactory
ShouldContainAtIndex. shouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found, ComparisonStrategy comparisonStrategy)
Creates a new
.ShouldContainAtIndex
static <T> ErrorMessageFactory
ShouldHaveAtIndex. shouldHaveAtIndex(java.util.List<? extends T> actual, Condition<? super T> condition, Index index, T found)
Creates a new
.ShouldHaveAtIndex
static ErrorMessageFactory
ShouldNotContainAtIndex. shouldNotContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index)
Creates a new
.ShouldNotContainAtIndex
static ErrorMessageFactory
ShouldNotContainAtIndex. shouldNotContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, ComparisonStrategy comparisonStrategy)
Creates a new
.ShouldNotContainAtIndex
Constructors in org.assertj.core.error with parameters of type Index Constructor Description ShouldBeAtIndex(java.util.List<? extends T> actual, Condition<? super T> condition, Index index, T found)
ShouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found, ComparisonStrategy comparisonStrategy)
ShouldHaveAtIndex(java.util.List<? extends T> actual, Condition<? super T> condition, Index index, T found)
ShouldNotContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, ComparisonStrategy comparisonStrategy)
-
Uses of Index in org.assertj.core.internal
Methods in org.assertj.core.internal with parameters of type Index Modifier and Type Method Description (package private) void
Arrays. assertContains(AssertionInfo info, Failures failures, java.lang.Object array, java.lang.Object value, Index index)
void
Arrays2D. assertContains(AssertionInfo info, Failures failures, java.lang.Object array, java.lang.Object value, Index index)
void
Boolean2DArrays. assertContains(AssertionInfo info, boolean[][] actual, boolean[] value, Index index)
Verifies that the given array contains the given value at the given index.void
BooleanArrays. assertContains(AssertionInfo info, boolean[] actual, boolean value, Index index)
Verifies that the given array contains the given value at the given index.void
Byte2DArrays. assertContains(AssertionInfo info, byte[][] actual, byte[] value, Index index)
Verifies that the given array contains the given value at the given index.void
ByteArrays. assertContains(AssertionInfo info, byte[] actual, byte value, Index index)
Verifies that the given array contains the given value at the given index.void
ByteArrays. assertContains(AssertionInfo info, byte[] actual, int value, Index index)
Verifies that the given array contains the given value at the given index.void
Char2DArrays. assertContains(AssertionInfo info, char[][] actual, char[] value, Index index)
Verifies that the given array contains the given value at the given index.void
CharArrays. assertContains(AssertionInfo info, char[] actual, char value, Index index)
Verifies that the given array contains the given value at the given index.void
Double2DArrays. assertContains(AssertionInfo info, double[][] actual, double[] value, Index index)
Verifies that the given array contains the given value at the given index.void
DoubleArrays. assertContains(AssertionInfo info, double[] actual, double value, Index index)
Verifies that the given array contains the given value at the given index.void
Float2DArrays. assertContains(AssertionInfo info, float[][] actual, float[] value, Index index)
Verifies that the given array contains the given value at the given index.void
FloatArrays. assertContains(AssertionInfo info, float[] actual, float value, Index index)
Verifies that the given array contains the given value at the given index.void
Int2DArrays. assertContains(AssertionInfo info, int[][] actual, int[] value, Index index)
Verifies that the given array contains the given value at the given index.void
IntArrays. assertContains(AssertionInfo info, int[] actual, int value, Index index)
Verifies that the given array contains the given value at the given index.void
Lists. assertContains(AssertionInfo info, java.util.List<?> actual, java.lang.Object value, Index index)
Verifies that the givenList
contains the given object at the given index.void
Long2DArrays. assertContains(AssertionInfo info, long[][] actual, long[] value, Index index)
Verifies that the given array contains the given value at the given index.void
LongArrays. assertContains(AssertionInfo info, long[] actual, long value, Index index)
Verifies that the given array contains the given value at the given index.void
Object2DArrays. assertContains(AssertionInfo info, ELEMENT[][] actual, ELEMENT[] value, Index index)
Verifies that the given array contains the given object at the given index.void
ObjectArrays. assertContains(AssertionInfo info, java.lang.Object[] actual, java.lang.Object value, Index index)
Verifies that the given array contains the given object at the given index.void
Short2DArrays. assertContains(AssertionInfo info, short[][] actual, short[] value, Index index)
Verifies that the given array contains the given value at the given index.void
ShortArrays. assertContains(AssertionInfo info, short[] actual, short value, Index index)
Verifies that the given array contains the given value at the given index.(package private) void
Arrays. assertDoesNotContain(AssertionInfo info, Failures failures, java.lang.Object array, java.lang.Object value, Index index)
void
Arrays2D. assertDoesNotContain(AssertionInfo info, Failures failures, java.lang.Object array, java.lang.Object value, Index index)
void
Boolean2DArrays. assertDoesNotContain(AssertionInfo info, boolean[][] actual, boolean[] value, Index index)
Verifies that the given array does not contain the given value at the given index.void
BooleanArrays. assertDoesNotContain(AssertionInfo info, boolean[] actual, boolean value, Index index)
Verifies that the given array does not contain the given value at the given index.void
Byte2DArrays. assertDoesNotContain(AssertionInfo info, byte[][] actual, byte[] value, Index index)
Verifies that the given array does not contain the given value at the given index.void
ByteArrays. assertDoesNotContain(AssertionInfo info, byte[] actual, byte value, Index index)
Verifies that the given array does not contain the given value at the given index.void
ByteArrays. assertDoesNotContain(AssertionInfo info, byte[] actual, int value, Index index)
Verifies that the given array does not contain the given value at the given index.void
Char2DArrays. assertDoesNotContain(AssertionInfo info, char[][] actual, char[] value, Index index)
Verifies that the given array does not contain the given value at the given index.void
CharArrays. assertDoesNotContain(AssertionInfo info, char[] actual, char value, Index index)
Verifies that the given array does not contain the given value at the given index.void
Double2DArrays. assertDoesNotContain(AssertionInfo info, double[][] actual, double[] value, Index index)
Verifies that the given array does not contain the given value at the given index.void
DoubleArrays. assertDoesNotContain(AssertionInfo info, double[] actual, double value, Index index)
Verifies that the given array does not contain the given value at the given index.void
Float2DArrays. assertDoesNotContain(AssertionInfo info, float[][] actual, float[] value, Index index)
Verifies that the given array does not contain the given value at the given index.void
FloatArrays. assertDoesNotContain(AssertionInfo info, float[] actual, float value, Index index)
Verifies that the given array does not contain the given value at the given index.void
Int2DArrays. assertDoesNotContain(AssertionInfo info, int[][] actual, int[] value, Index index)
Verifies that the given array does not contain the given value at the given index.void
IntArrays. assertDoesNotContain(AssertionInfo info, int[] actual, int value, Index index)
Verifies that the given array does not contain the given value at the given index.void
Lists. assertDoesNotContain(AssertionInfo info, java.util.List<?> actual, java.lang.Object value, Index index)
Verifies that the givenList
does not contain the given object at the given index.void
Long2DArrays. assertDoesNotContain(AssertionInfo info, long[][] actual, long[] value, Index index)
Verifies that the given array does not contain the given value at the given index.void
LongArrays. assertDoesNotContain(AssertionInfo info, long[] actual, long value, Index index)
Verifies that the given array does not contain the given value at the given index.void
Object2DArrays. assertDoesNotContain(AssertionInfo info, ELEMENT[][] actual, ELEMENT[] value, Index index)
Verifies that the given array does not contain the given object at the given index.void
ObjectArrays. assertDoesNotContain(AssertionInfo info, java.lang.Object[] actual, java.lang.Object value, Index index)
Verifies that the given array does not contain the given object at the given index.void
Short2DArrays. assertDoesNotContain(AssertionInfo info, short[][] actual, short[] value, Index index)
Verifies that the given array does not contain the given value at the given index.void
ShortArrays. assertDoesNotContain(AssertionInfo info, short[] actual, short value, Index index)
Verifies that the given array does not contain the given value at the given index.<T> void
Lists. assertHas(AssertionInfo info, java.util.List<? extends T> actual, Condition<? super T> condition, Index index)
Verifies that the givenList
satisfies the given
at the given index.Condition
<T> void
Lists. assertIs(AssertionInfo info, java.util.List<? extends T> actual, Condition<? super T> condition, Index index)
Verifies that the givenList
satisfies the given
at the given index.Condition
(package private) static void
CommonValidations. checkIndexValueIsValid(Index index, int maximum)
private <T> boolean
Lists. conditionIsMetAtIndex(AssertionInfo info, java.util.List<T> actual, Condition<? super T> condition, Index index)
<T> void
Lists. satisfies(AssertionInfo info, java.util.List<? extends T> actual, java.util.function.Consumer<? super T> requirements, Index index)
-