Top Fields Constructors Methods
org.assertj.core.api

public abstract Class AbstractFloatArrayAssert<SELF extends AbstractFloatArrayAssert<SELF>>

extends AbstractArrayAssert<SELF extends AbstractFloatArrayAssert<SELF>, float[], Float>
Class Inheritance
Known Direct Subclasses
org.assertj.core.api.FloatArrayAssert
Static Imports
java.util.stream.IntStream.range

Field Summary

Modifier and TypeField and Description
protected FloatArrays

Constructor Summary

AccessConstructor and Description
protected
AbstractFloatArrayAssert(float[] actual, Class<?> selfType)

Method Summary

Modifier and TypeMethod and Description
public SELF

Returns:

this assertion object.
contains
(float...
the given values.
values
)

Verifies that the actual array contains the given values, in any order.

public SELF

Returns:

this assertion object.
contains
(Float[]
the given values.
values
)

Verifies that the actual array contains the values of the given array, in any order.

public SELF

Returns:

this assertion object.
contains
(float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains the given values, in any order, the comparison is done at the given precision/offset set with Assertions#withPrecision(Float).

public SELF

Returns:

this assertion object.
contains
(Float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains the values of the given array, in any order, the comparison is done at the given precision/offset set with Assertions#withPrecision(Float).

public SELF

Returns:

this assertion object.
contains
(float
the value to look for.
value
,
Index
the index where the value should be stored in the actual array.
index
)

Verifies that the actual array contains the given value at the given index.

public SELF

Returns:

this assertion object.
contains
(float
the value to look for.
value
,
Index
the index where the value should be stored in the actual array.
index
,
Offset<Float>
the precision which the value may vary.
precision
)

Verifies that the actual array contains the given value at the given index.

public SELF

Returns:

this assertion object.
containsAnyOf
(float...
the values whose at least one which is expected to be in the array under test.
values
)

Verifies that the actual array contains at least one of the given values.

public SELF

Returns:

this assertion object.
containsAnyOf
(Float[]
the values whose at least one which is expected to be in the array under test.
values
)

Verifies that the actual array contains at least one of the values of the given array.

public SELF

Returns:

this assertion object.
containsExactly
(float...
the given values.
values
)

Verifies that the actual group contains only the given values and nothing else, in order.

public SELF

Returns:

this assertion object.
containsExactly
(Float[]
the given values.
values
)

Verifies that the actual group contains only the values of the given array and nothing else, in order.

public SELF

Returns:

this assertion object.
containsExactly
(float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual group contains only the given values and nothing else, in order.

public SELF

Returns:

this assertion object.
containsExactly
(Float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual group contains only the values of the given array and nothing else, in order.

public SELF

Returns:

this assertion object.
containsExactlyInAnyOrder
(float...
the given values.
values
)

Verifies that the actual group contains exactly the given values and nothing else, in any order.

public SELF

Returns:

this assertion object.
containsExactlyInAnyOrder
(Float[]
the given values.
values
)

Verifies that the actual group contains exactly the values of the given array and nothing else, in any order.

public SELF

Returns:

this assertion object.
containsOnly
(float...
the given values.
values
)

Verifies that the actual array contains only the given values and nothing else, in any order.

public SELF

Returns:

this assertion object.
containsOnly
(Float[]
the given values.
values
)

Verifies that the actual array contains only the values of the given array and nothing else, in any order.

public SELF

Returns:

this assertion object.
containsOnly
(float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains only the given values and nothing else, in any order.

public SELF

Returns:

this assertion object.
containsOnly
(Float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains only the values of the given array and nothing else, in any order.

public SELF

Returns:

this assertion object.
containsOnlyOnce
(float...
the given values.
values
)

Verifies that the actual array contains the given values only once.

public SELF

Returns:

this assertion object.
containsOnlyOnce
(Float[]
the given values.
values
)

Verifies that the actual array contains the values of the given array only once.

public SELF

Returns:

this assertion object.
containsOnlyOnce
(float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains the given values only once.

public SELF

Returns:

this assertion object.
containsOnlyOnce
(Float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains the values of the given array only once.

public SELF

Returns:

this assertion object.
containsSequence
(float...
the sequence of values to look for.
sequence
)

Verifies that the actual array contains the given sequence, without any other values between them.

public SELF

Returns:

myself assertion object.
containsSequence
(Float[]
the sequence of values to look for.
sequence
)

Verifies that the actual array contains the given sequence, without any other values between them.

public SELF

Returns:

this assertion object.
containsSequence
(float[]
the sequence of values to look for.
sequence
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains the given sequence, without any other values between them.

public SELF

Returns:

this assertion object.
containsSequence
(Float[]
the sequence of values to look for.
sequence
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains the given sequence, without any other values between them.

public SELF

Returns:

this assertion object.
containsSubsequence
(float...
the subsequence of values to look for.
subsequence
)

Verifies that the actual array contains the given subsequence (possibly with other values between them).

public SELF

Returns:

myself assertion object.
containsSubsequence
(Float[]
the subsequence of values to look for.
subsequence
)

Verifies that the actual array contains the given subsequence (possibly with other values between them).

public SELF

Returns:

this assertion object.
containsSubsequence
(float[]
the subsequence of values to look for.
subsequence
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains the given subsequence (possibly with other values between them).

public SELF

Returns:

this assertion object.
containsSubsequence
(Float[]
the subsequence of values to look for.
subsequence
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array contains the given subsequence (possibly with other values between them).

public SELF

Returns:

this assertion object.
doesNotContain
(float...
the given values.
values
)

Verifies that the actual array does not contain the given values.

public SELF

Returns:

this assertion object.
doesNotContain
(Float[]
the given values.
values
)

Verifies that the actual array does not contain the values of the given array.

public SELF

Returns:

this assertion object.
doesNotContain
(float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array does not contain the given values.

public SELF

Returns:

this assertion object.
doesNotContain
(Float[]
the given values.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array does not contain the values of the given array.

public SELF

Returns:

this assertion object.
doesNotContain
(float
the value to look for.
value
,
Index
the index where the value should be stored in the actual array.
index
)

Verifies that the actual array does not contain the given value at the given index.

public SELF

Returns:

this assertion object.
doesNotContain
(float
the value to look for.
value
,
Index
the index where the value should be stored in the actual array.
index
,
Offset<Float>
the precision under which the value may vary.
precision
)

Verifies that the actual array does not contain the given value at the given index.

public SELF

Returns:

this assertion object.
doesNotHaveDuplicates
()

Verifies that the actual array does not contain duplicates.

public SELF

Returns:

this assertion object.
doesNotHaveDuplicates
(Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array does not contain duplicates.

public SELF

Returns:

this assertion object.
endsWith
(float...
the sequence of values to look for.
sequence
)

Verifies that the actual array ends with the given sequence of values, without any other values between them.

public SELF

Returns:

myself assertion object.
endsWith
(Float[]
the sequence of values to look for.
sequence
)

Verifies that the actual array ends with the given sequence of values, without any other values between them.

public SELF

Returns:

this assertion object.
endsWith
(float[]
the sequence of values to look for.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array ends with the given sequence of values, without any other values between them.

public SELF

Returns:

this assertion object.
endsWith
(Float[]
the sequence of values to look for.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array ends with the given sequence of values, without any other values between them.

public SELF
hasSameSizeAs(Iterable<?>
the Iterable to compare size with actual group.
other
)

Implements org.assertj.core.api.EnumerableAssert.hasSameSizeAs.

Verifies that the actual group has the same size as given Iterable.
public SELF
hasSize(int
the expected number of values in the actual group.
expected
)

Implements org.assertj.core.api.EnumerableAssert.hasSize.

Verifies that the number of values in the actual group is equal to the given one.
public SELF

Returns:

this assertion object.
hasSizeBetween
(int
the lower boundary compared to which actual size should be greater than or equal to.
lowerBoundary
,
int
the higher boundary compared to which actual size should be less than or equal to.
higherBoundary
)

Implements org.assertj.core.api.EnumerableAssert.hasSizeBetween.

Verifies that the number of values in the actual group is between the given boundaries (inclusive).
public SELF

Returns:

this assertion object.
hasSizeGreaterThan
(int
the given value to compare the actual size to.
boundary
)

Implements org.assertj.core.api.EnumerableAssert.hasSizeGreaterThan.

Verifies that the number of values in the actual array is greater than the given boundary.
public SELF

Returns:

this assertion object.
hasSizeGreaterThanOrEqualTo
(int
the given value to compare the actual size to.
boundary
)

Implements org.assertj.core.api.EnumerableAssert.hasSizeGreaterThanOrEqualTo.

Verifies that the number of values in the actual array is greater than or equal to the given boundary.
public SELF

Returns:

this assertion object.
hasSizeLessThan
(int
the given value to compare the actual size to.
boundary
)

Implements org.assertj.core.api.EnumerableAssert.hasSizeLessThan.

Verifies that the number of values in the actual array is less than the given boundary.
public SELF

Returns:

this assertion object.
hasSizeLessThanOrEqualTo
(int
the given value to compare the actual size to.
boundary
)

Implements org.assertj.core.api.EnumerableAssert.hasSizeLessThanOrEqualTo.

Verifies that the number of values in the actual array is less than or equal to the given boundary.
public void
isEmpty()

Implements org.assertj.core.api.EnumerableAssert.isEmpty.

Verifies that the actual group of values is empty.
public SELF
isNotEmpty()

Implements org.assertj.core.api.EnumerableAssert.isNotEmpty.

Verifies that the actual group of values is not empty.
public void
isNullOrEmpty()

Implements org.assertj.core.api.EnumerableAssert.isNullOrEmpty.

Verifies that the actual group of values is null or empty.
public SELF
isSorted()

Implements org.assertj.core.api.ArraySortedAssert.isSorted.

Verifies that the actual array is sorted in ascending order according to the natural ordering of its elements.
public SELF
isSortedAccordingTo(Comparator<? super Float>
the Comparator used to compare array elements
comparator
)

Implements org.assertj.core.api.ArraySortedAssert.isSortedAccordingTo.

Verifies that the actual array is sorted according to the given comparator.
public SELF

Returns:

this assertion object.
startsWith
(float...
the sequence of values to look for.
sequence
)

Verifies that the actual array starts with the given sequence of values, without any other values between them.

public SELF

Returns:

myself assertion object.
startsWith
(Float[]
the sequence of values to look for.
sequence
)

Verifies that the actual array starts with the given sequence of values, without any other values between them.

public SELF

Returns:

this assertion object.
startsWith
(float[]
the sequence of values to look for.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array starts with the given sequence of values, without any other values between them.

public SELF

Returns:

this assertion object.
startsWith
(Float[]
the sequence of values to look for.
values
,
Offset<Float>
the precision under which the values may vary.
precision
)

Verifies that the actual array starts with the given sequence of values, without any other values between them.

private static float[]
public SELF

Returns:

this assertion object.
usingComparatorWithPrecision
(Float
precision used to compare Float.
precision
)

Create a Float comparator which compares floats at the given precision and pass it to usingElementComparator(Comparator).

public SELF
usingDefaultElementComparator()

Implements org.assertj.core.api.EnumerableAssert.usingDefaultElementComparator.

Revert to standard comparison for incoming assertion group element checks.
public SELF
usingElementComparator(Comparator<? super Float>
the comparator to use for incoming assertion checks.
customComparator
)

Implements org.assertj.core.api.EnumerableAssert.usingElementComparator.

Use given custom comparator instead of relying on actual type A equals method to compare group elements for incoming assertion checks.
Inherited from org.assertj.core.api.AbstractArrayAssert:
requireNonNullParameter