|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.Assert
org.fest.assertions.GenericAssert<S,A>
org.fest.assertions.GroupAssert<S,A>
org.fest.assertions.ItemGroupAssert<S,A>
org.fest.assertions.ArrayAssert<ShortArrayAssert,short[]>
org.fest.assertions.ShortArrayAssert
public class ShortArrayAssert
Assertions for short arrays.
To create a new instance of this class invoke .
Assertions.assertThat(short[])
| Field Summary |
|---|
| Fields inherited from class org.fest.assertions.GenericAssert |
|---|
actual, myself |
| Constructor Summary | |
|---|---|
protected |
ShortArrayAssert(short... actual)
Creates a new ShortArrayAssert. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.fest.assertions.ArrayAssert |
|---|
actualAsList, actualAsSet, actualGroupSize |
| Methods inherited from class org.fest.assertions.ItemGroupAssert |
|---|
assertContains, assertContainsOnly, assertDoesNotHaveDuplicates, assertExcludes, validateIsNotNull |
| Methods inherited from class org.fest.assertions.GroupAssert |
|---|
hasSize, isEmpty, isNotEmpty, isNullOrEmpty |
| Methods inherited from class org.fest.assertions.GenericAssert |
|---|
as, as, describedAs, describedAs, doesNotSatisfy, is, isIn, isIn, isNot, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfies |
| Methods inherited from class org.fest.assertions.Assert |
|---|
customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ShortArrayAssert(short... actual)
ShortArrayAssert.
actual - the target to verify.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||