|
||||||||||
| 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<T>
org.fest.assertions.GroupAssert<T>
T - the type of object implementations of this template can verify.public abstract class GroupAssert<T>
Understands a template for assertion methods related to arrays or collections.
| Field Summary |
|---|
| Fields inherited from class org.fest.assertions.GenericAssert |
|---|
actual |
| Constructor Summary | |
|---|---|
protected |
GroupAssert(T actual)
Creates a new . |
| Method Summary | |
|---|---|
protected abstract int |
actualGroupSize()
Returns the size of the actual group (array, collection, etc.) |
protected abstract GroupAssert<T> |
hasSize(int expected)
Verifies that the number of values in the actual group is equal to the given one. |
protected abstract void |
isEmpty()
Verifies that the actual group is empty. |
protected abstract GroupAssert<T> |
isNotEmpty()
Verifies that the actual group contains at least on value. |
protected abstract void |
isNullOrEmpty()
Verifies that the actual group is null or empty. |
| Methods inherited from class org.fest.assertions.GenericAssert |
|---|
as, as, assertDoesNotSatisfy, assertEqualTo, assertIs, assertIsNot, assertNotEqualTo, assertNotNull, assertNotSameAs, assertSameAs, assertSatisfies, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isNot, isNotEqualTo, 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 GroupAssert(T actual)
GroupAssert.
actual - the target to verify.| Method Detail |
|---|
protected abstract void isNullOrEmpty()
null or empty.
AssertionError - if the actual group is not null or not empty.protected abstract void isEmpty()
AssertionError - if the actual group is null or not empty.protected abstract GroupAssert<T> isNotEmpty()
AssertionError - if the actual group is null or empty.protected abstract GroupAssert<T> hasSize(int expected)
expected - the expected number of values in the actual group.
AssertionError - if the number of values of the actual group is not equal to the given one.protected abstract int actualGroupSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||