public class FloatArrayAssert extends ArrayAssert<FloatArrayAssert,float[]>
float
arrays.
To create a new instance of this class invoke
.
Assertions.assertThat(float[])
actual, myself
Modifier | Constructor and Description |
---|---|
protected |
FloatArrayAssert(float... actual)
Creates a new
FloatArrayAssert . |
Modifier and Type | Method and Description |
---|---|
FloatArrayAssert |
contains(float... values)
Verifies that the actual
float array contains the given values. |
FloatArrayAssert |
containsOnly(float... values)
Verifies that the actual
float array contains the given values only. |
FloatArrayAssert |
excludes(float... values)
Verifies that the actual
float array does not contain the given values. |
FloatArrayAssert |
isEqualTo(float[] expected)
Verifies that the actual
float array is equal to the given array. |
FloatArrayAssert |
isNotEqualTo(float[] array)
Verifies that the actual
float 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 FloatArrayAssert(float... actual)
FloatArrayAssert
.actual
- the target to verify.public FloatArrayAssert contains(float... values)
float
array contains the given values.values
- the values to look for.AssertionError
- if the actual float
array is null
.NullPointerException
- if the given float
array is null
.AssertionError
- if the actual float
array does not contain the given values.public FloatArrayAssert containsOnly(float... values)
float
array contains the given values only.values
- the values to look for.AssertionError
- if the actual float
array is null
.NullPointerException
- if the given float
array is null
.AssertionError
- if the actual float
array does not contain the given objects, or if the actual
float
array contains elements other than the ones specified.public FloatArrayAssert excludes(float... values)
float
array does not contain the given values.values
- the values the array should exclude.AssertionError
- if the actual float
array is null
.NullPointerException
- if the given float
array is null
.AssertionError
- if the actual Object
array contains any of the given values.public FloatArrayAssert isEqualTo(float[] expected)
float
array is equal to the given array. Array equality is checked by
Arrays.equals(float[], float[])
.isEqualTo
in class GenericAssert<FloatArrayAssert,float[]>
expected
- the given array to compare the actual array to.AssertionError
- if the actual float
array is not equal to the given one.public FloatArrayAssert isNotEqualTo(float[] array)
float
array is not equal to the given array. Array equality is checked by
Arrays.equals(float[], float[])
.isNotEqualTo
in class GenericAssert<FloatArrayAssert,float[]>
array
- the given array to compare the actual array to.AssertionError
- if the actual float
array is equal to the given one.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.