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
public abstract class ArrayAssert<T>
- extends ItemGroupAssert<T>
Understands assertions for arrays.
- Author:
- Alex Ruiz
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 |
ArrayAssert
protected ArrayAssert(T actual)
- Creates a new
ArrayAssert
.
- Parameters:
actual
- the target to verify.
actualGroupSize
protected final int actualGroupSize()
- Returns the size of the actual array.
- Specified by:
actualGroupSize
in class GroupAssert<T>
- Returns:
- the size of the actual array.
- Throws:
NullPointerException
- if the actual array is null
.
actualAsSet
protected Set<Object> actualAsSet()
- Returns the actual value as a
Set
.
- Specified by:
actualAsSet
in class ItemGroupAssert<T>
- Returns:
- the actual value as a
Set
.
actualAsList
protected List<Object> actualAsList()
- Returns the actual value as a
List
.
- Specified by:
actualAsList
in class ItemGroupAssert<T>
- Returns:
- the actual value as a
List
.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.