Package io.fluentlenium.assertj.custom
Class FluentListSizeBuilder
java.lang.Object
io.fluentlenium.assertj.custom.FluentListSizeBuilder
Builder for fluent list size assertion.
-
Method Summary
Modifier and TypeMethodDescriptionequalTo
(int size) Assert that actual list size is equal to given size.greaterThan
(int size) Assert that actual list size is greater than given size.greaterThanOrEqualTo
(int size) Assert that actual list size is greater than or equal to given size.lessThan
(int size) Assert that actual list size is less that given size.lessThanOrEqualTo
(int size) Assert that actual list size is less than or equal to given size.notEqualTo
(int size) Assert that actual list size is different to given size.
-
Method Details
-
lessThan
Assert that actual list size is less that given size.- Parameters:
size
- expected size- Returns:
- ${code this} assertion object.
-
lessThanOrEqualTo
Assert that actual list size is less than or equal to given size.- Parameters:
size
- expected size- Returns:
- ${code this} assertion object.
-
greaterThan
Assert that actual list size is greater than given size.- Parameters:
size
- expected size- Returns:
- ${code this} assertion object.
-
greaterThanOrEqualTo
Assert that actual list size is greater than or equal to given size.- Parameters:
size
- expected size- Returns:
- ${code this} assertion object.
-
notEqualTo
Assert that actual list size is different to given size.- Parameters:
size
- expected size- Returns:
- ${code this} assertion object.
-
equalTo
Assert that actual list size is equal to given size.As an alternate solution you can call the following assertion directly:
assertThat(elementList).hasSize(5);
- Parameters:
size
- expected size- Returns:
- ${code this} assertion object.
-