|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- the "self" type of this assertion class. Please read
"Emulating 'self types' using Java Generics to simplify fluent
API implementation" for more details.public interface EnumerableAssert<S>
Assertions applicable to groups of values that can be enumerated (e.g. arrays, collections or strings.)
Method Summary | |
---|---|
S |
hasSize(int expected)
Verifies that the number of values in the actual group is equal to the given one. |
void |
isEmpty()
Verifies that the actual group of values is empty. |
S |
isNotEmpty()
Verifies that the actual group of values is not empty. |
void |
isNullOrEmpty()
Verifies that the actual group of values is null or empty. |
Method Detail |
---|
void isNullOrEmpty()
null
or empty.
AssertionError
- if the actual group of values is not null
or not empty.void isEmpty()
AssertionError
- if the actual group of values is not empty.S isNotEmpty()
this
assertion object.
AssertionError
- if the actual group of values is empty.S hasSize(int expected)
expected
- the expected number of values in the actual group.
this
assertion object.
AssertionError
- if the number of values of the actual group is not equal to the given one.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |