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