Package com.google.common.truth
Class PrimitiveFloatArraySubject.FloatArrayAsIterable
- java.lang.Object
-
- com.google.common.truth.IterableSubject.UsingCorrespondence<Float,Number>
-
- com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
-
- Enclosing class:
- PrimitiveFloatArraySubject
public static final class PrimitiveFloatArraySubject.FloatArrayAsIterable extends IterableSubject.UsingCorrespondence<Float,Number>
A partially specified check for doing assertions on the array similar to the assertions supported forIterable
subjects, in which the elements of the array under test are compared to expected elements using either exact or tolerant float equality: seePrimitiveFloatArraySubject.usingExactEquality()
andPrimitiveFloatArraySubject.usingTolerance(double)
. Call methods on this object to actually execute the check.In the exact equality case, the methods on this class which take
Number
arguments only accept certain instances: again, seePrimitiveFloatArraySubject.usingExactEquality()
for details.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
containsAnyOf(float[] expected)
AsIterableSubject.UsingCorrespondence.containsAnyOf(Object, Object, Object...)
but taking a primitive float array.Ordered
containsAtLeast(float[] expected)
AsIterableSubject.UsingCorrespondence.containsAtLeast(Object, Object, Object...)
but taking a primitive float array.Ordered
containsExactly(float[] expected)
AsIterableSubject.UsingCorrespondence.containsExactly(Object...)
but taking a primitive float array.void
containsNoneOf(float[] excluded)
AsIterableSubject.UsingCorrespondence.containsNoneOf(Object, Object, Object...)
but taking a primitive float array.-
Methods inherited from class com.google.common.truth.IterableSubject.UsingCorrespondence
contains, containsAnyIn, containsAnyIn, containsAnyOf, containsAtLeast, containsAtLeastElementsIn, containsAtLeastElementsIn, containsExactly, containsExactlyElementsIn, containsExactlyElementsIn, containsNoneIn, containsNoneIn, containsNoneOf, displayingDiffsPairedBy, displayingDiffsPairedBy, doesNotContain, equals, hashCode, toString
-
-
-
-
Method Detail
-
containsAtLeast
@CanIgnoreReturnValue public Ordered containsAtLeast(float[] expected)
AsIterableSubject.UsingCorrespondence.containsAtLeast(Object, Object, Object...)
but taking a primitive float array.
-
containsAnyOf
public void containsAnyOf(float[] expected)
AsIterableSubject.UsingCorrespondence.containsAnyOf(Object, Object, Object...)
but taking a primitive float array.
-
containsExactly
@CanIgnoreReturnValue public Ordered containsExactly(float[] expected)
AsIterableSubject.UsingCorrespondence.containsExactly(Object...)
but taking a primitive float array.
-
containsNoneOf
public void containsNoneOf(float[] excluded)
AsIterableSubject.UsingCorrespondence.containsNoneOf(Object, Object, Object...)
but taking a primitive float array.
-
-