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