Package com.google.common.truth
Class PrimitiveDoubleArraySubject.DoubleArrayAsIterable
- java.lang.Object
-
- com.google.common.truth.IterableSubject.UsingCorrespondence<Double,Number>
-
- com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
-
- Enclosing class:
- PrimitiveDoubleArraySubject
public static final class PrimitiveDoubleArraySubject.DoubleArrayAsIterable extends IterableSubject.UsingCorrespondence<Double,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 double equality: seePrimitiveDoubleArraySubject.usingExactEquality()
andPrimitiveDoubleArraySubject.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, seePrimitiveDoubleArraySubject.usingExactEquality()
for details.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
containsAnyOf(double[] expected)
AsIterableSubject.UsingCorrespondence.containsAnyOf(Object, Object, Object...)
but taking a primitive double array.Ordered
containsAtLeast(double[] expected)
AsIterableSubject.UsingCorrespondence.containsAtLeast(Object, Object, Object...)
but taking a primitive double array.Ordered
containsExactly(double[] expected)
AsIterableSubject.UsingCorrespondence.containsExactly(Object...)
but taking a primitive double array.void
containsNoneOf(double[] excluded)
AsIterableSubject.UsingCorrespondence.containsNoneOf(Object, Object, Object...)
but taking a primitive double 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(double[] expected)
AsIterableSubject.UsingCorrespondence.containsAtLeast(Object, Object, Object...)
but taking a primitive double array.
-
containsAnyOf
public void containsAnyOf(double[] expected)
AsIterableSubject.UsingCorrespondence.containsAnyOf(Object, Object, Object...)
but taking a primitive double array.
-
containsExactly
@CanIgnoreReturnValue public Ordered containsExactly(double[] expected)
AsIterableSubject.UsingCorrespondence.containsExactly(Object...)
but taking a primitive double array.
-
containsNoneOf
public void containsNoneOf(double[] excluded)
AsIterableSubject.UsingCorrespondence.containsNoneOf(Object, Object, Object...)
but taking a primitive double array.
-
-