All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fluentlenium.assertj.custom.ListStateAssert Maven / Gradle / Ivy

There is a newer version: 5.0.4
Show newest version
package org.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(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy