public class DoubleArrayAssert extends ArrayAssert<DoubleArrayAssert,double[]>
double
arrays.
To create a new instance of this class invoke
.
Assertions.assertThat(double[])
actual, myself
Modifier | Constructor and Description |
---|---|
protected |
DoubleArrayAssert(double... actual)
Creates a new
DoubleArrayAssert . |
Modifier and Type | Method and Description |
---|---|
DoubleArrayAssert |
contains(double... values)
Verifies that the actual
double array contains the given values. |
DoubleArrayAssert |
containsOnly(double... values)
Verifies that the actual
double array contains the given values only. |
DoubleArrayAssert |
excludes(double... values)
Verifies that the actual
double array does not contain the given values. |
DoubleArrayAssert |
isEqualTo(double[] expected)
Verifies that the actual
double array is equal to the given array. |
DoubleArrayAssert |
isEqualTo(double[] expected,
Delta delta)
Verifies that the actual
double array is equal to the given array, within a positive delta. |
DoubleArrayAssert |
isNotEqualTo(double[] array)
Verifies that the actual
double array is not equal to the given array. |
actualAsList, actualAsSet, actualGroupSize
assertContains, assertContainsOnly, assertDoesNotHaveDuplicates, assertExcludes, validateIsNotNull
hasSize, isEmpty, isNotEmpty, isNullOrEmpty
as, as, describedAs, describedAs, doesNotSatisfy, is, isIn, isIn, isNot, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfies
customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith
protected DoubleArrayAssert(double... actual)
DoubleArrayAssert
.actual
- the target to verify.public DoubleArrayAssert contains(double... values)
double
array contains the given values.values
- the values to look for.AssertionError
- if the actual double
array is null
.NullPointerException
- if the given double
array is null
.AssertionError
- if the actual double
array does not contain the given values.public DoubleArrayAssert containsOnly(double... values)
double
array contains the given values only.values
- the values to look for.AssertionError
- if the actual double
array is null
.NullPointerException
- if the given double
array is null
.AssertionError
- if the actual double
array does not contain the given objects, or if the actual
double
array contains elements other than the ones specified.public DoubleArrayAssert excludes(double... values)
double
array does not contain the given values.values
- the values the array should exclude.AssertionError
- if the actual double
array is null
.NullPointerException
- if the given double
array is null
.AssertionError
- if the actual double
array contains any of the given values.public DoubleArrayAssert isEqualTo(double[] expected)
double
array is equal to the given array. Array equality is checked by
Arrays.equals(double[], double[])
.isEqualTo
in class GenericAssert<DoubleArrayAssert,double[]>
expected
- the given array to compare the actual array to.AssertionError
- if the actual double
array is not equal to the given one.public DoubleArrayAssert isEqualTo(double[] expected, Delta delta)
double
array is equal to the given array, within a positive delta.expected
- the given array to compare the actual array to.delta
- the given delta.AssertionError
- if the actual double
array is not equal to the given one.public DoubleArrayAssert isNotEqualTo(double[] array)
double
array is not equal to the given array. Array equality is checked by
Arrays.equals(double[], double[])
.isNotEqualTo
in class GenericAssert<DoubleArrayAssert,double[]>
array
- the given array to compare the actual array to.AssertionError
- if the actual double
array is equal to the given one.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.