io.fluentlenium.assertj.custom.ListStateAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluentlenium-assertj Show documentation
Show all versions of fluentlenium-assertj Show documentation
AssertJ Extension for FluentLenium
The newest version!
package io.fluentlenium.assertj.custom;
/**
* Interface for asserting the state of an element.
*/
public interface ListStateAssert {
/**
* Creates a {@link FluentListSizeBuilder} object from which further size related assertion methods may be called.
*
* This method doesn't do any assertion, only creates the new object.
*
* Example:
*
* assertThat(elementList).hasSize().greaterThanOrEqualTo(5);
*
*
* @return a new ist size builder
*/
FluentListSizeBuilder hasSize();
/**
* Checks whether the list size is the same as the expected one in the argument.
*
* Example:
*
* assertThat(elementList).hasSize(5);
*
*
* @param expectedSize expected size
* @return this assertion object
*/
FluentListAssert hasSize(int expectedSize);
/**
* Checks if the list is empty.
*
* Example:
*
* assertThat(elementList).isEmpty();
*
*
* @return this assertion object
*/
FluentListAssert isEmpty();
/**
* Checks if the list is not empty.
*
* Example:
*
* assertThat(elementList).isNotEmpty();
*
*
* @return this assertion object
*/
FluentListAssert isNotEmpty();
}