org.fest.assertions
Class ArrayAssert<S,A>
java.lang.Object
org.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<S,A>
- Type Parameters:
S - used to simulate "self types." For more information please read "Emulating 'self types' using Java Generics to simplify fluent API implementation."A - the type the "actual" value.
- Direct Known Subclasses:
- BooleanArrayAssert, ByteArrayAssert, CharArrayAssert, DoubleArrayAssert, FloatArrayAssert, IntArrayAssert, LongArrayAssert, ShortArrayAssert
public abstract class ArrayAssert<S,A>
- extends ItemGroupAssert<S,A>
Assertions for arrays.
- Author:
- Alex Ruiz
| Methods inherited from class org.fest.assertions.GenericAssert |
as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, 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 |
ArrayAssert
protected ArrayAssert(Class<S> selfType,
A actual)
- Creates a new
ArrayAssert.
- Parameters:
selfType - the "self type."actual - the target to verify.
actualGroupSize
protected final int actualGroupSize()
- Returns the size of the actual array.
- Specified by:
actualGroupSize in class GroupAssert<S,A>
- 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<S,A>
- 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<S,A>
- Returns:
- the actual value as a
List.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.