Package org.fest.assertions
Class ArrayAssert<T>
java.lang.Object
org.fest.assertions.Assert
org.fest.assertions.GenericAssert<T>
org.fest.assertions.GroupAssert<T>
org.fest.assertions.ItemGroupAssert<T>
org.fest.assertions.ArrayAssert<T>
- Type Parameters:
T
- the generic type of the arrays.
- Direct Known Subclasses:
BooleanArrayAssert
,ByteArrayAssert
,CharArrayAssert
,DoubleArrayAssert
,FloatArrayAssert
,IntArrayAssert
,LongArrayAssert
,ShortArrayAssert
Understands assertions for arrays.
-
Field Summary
Fields inherited from class org.fest.assertions.GenericAssert
actual
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the actual value as aList
.Returns the actual value as aSet
.protected final int
Returns the size of the actual array.Methods inherited from class org.fest.assertions.ItemGroupAssert
assertContains, assertContainsOnly, assertDoesNotHaveDuplicates, assertExcludes, asSet, validateIsNotNull
Methods inherited from class org.fest.assertions.GroupAssert
as, as, assertHasSize, assertIsNotEmpty, describedAs, describedAs, hasSize, isEmpty, isNotEmpty, isNullOrEmpty, overridingErrorMessage
Methods inherited from class org.fest.assertions.GenericAssert
assertDoesNotSatisfy, assertEqualTo, assertIs, assertIsNot, assertNotEqualTo, assertNotNull, assertNotSameAs, assertSameAs, assertSatisfies, doesNotSatisfy, is, isEqualTo, isNot, isNotEqualTo, isNotNull, isNotSameAs, isNull, isSameAs, satisfies
Methods inherited from class org.fest.assertions.Assert
customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith
-
Constructor Details
-
ArrayAssert
Creates a newArrayAssert
.- Parameters:
actual
- the target to verify.
-
-
Method Details
-
actualGroupSize
protected final int actualGroupSize()Returns the size of the actual array.- Specified by:
actualGroupSize
in classGroupAssert<T>
- Returns:
- the size of the actual array.
- Throws:
NullPointerException
- if the actual array isnull
.
-
actualAsSet
Returns the actual value as aSet
.- Specified by:
actualAsSet
in classItemGroupAssert<T>
- Returns:
- the actual value as a
Set
.
-
actualAsList
Returns the actual value as aList
.- Specified by:
actualAsList
in classItemGroupAssert<T>
- Returns:
- the actual value as a
List
.
-