Module org.testfx

Class AbstractListViewAssert<SELF extends AbstractListViewAssert<SELF,​T>,​T>

  • All Implemented Interfaces:
    org.assertj.core.api.Assert<SELF,​javafx.css.Styleable>, org.assertj.core.api.Descriptable<SELF>, org.assertj.core.api.ExtensionPoints<SELF,​javafx.css.Styleable>
    Direct Known Subclasses:
    ListViewAssert

    public class AbstractListViewAssert<SELF extends AbstractListViewAssert<SELF,​T>,​T>
    extends AbstractNodeAssert<SELF>
    Base class for all ListView assertions.
    • Field Summary

      • Fields inherited from class org.assertj.core.api.AbstractAssert

        actual, info, myself, throwUnsupportedExceptionOnEquals
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractListViewAssert​(javafx.scene.control.ListView<T> actual, Class<?> selfType)  
    • Constructor Detail

      • AbstractListViewAssert

        protected AbstractListViewAssert​(javafx.scene.control.ListView<T> actual,
                                         Class<?> selfType)
    • Method Detail

      • hasListCell

        public SELF hasListCell​(Object value)
        Verifies that the actual ListView contains the given list cell value.
        Parameters:
        value - the given list cell value to ensure the ListView contains
        Returns:
        this assertion object
      • doesNotHaveListCell

        public SELF doesNotHaveListCell​(Object value)
        Verifies that the actual ListView does not contain the given list cell value.
        Parameters:
        value - the given list cell value to ensure the ListView does not contain
        Returns:
        this assertion object
      • hasExactlyNumItems

        public SELF hasExactlyNumItems​(int amount)
        Verifies that the actual ListView has exactly the given amount of items.
        Parameters:
        amount - the given amount of items to compare the actual amount of items to
        Returns:
        this assertion object
      • doesNotHaveExactlyNumItems

        public SELF doesNotHaveExactlyNumItems​(int amount)
        Verifies that the actual ListView does not have exactly the given amount of items.
        Parameters:
        amount - the given amount of items to compare the actual amount of items to
        Returns:
        this assertion object
      • isEmpty

        public SELF isEmpty()
        Verifies that the actual ListView is empty (does not contain any items).
        Returns:
        this assertion object
      • isNotEmpty

        public SELF isNotEmpty()
        Verifies that the actual ListView is not empty (contains at least one item).
        Returns:
        this assertion object
      • hasPlaceholder

        public SELF hasPlaceholder​(javafx.scene.Node placeHolder)
        Verifies that the actual ListView has the given placeHolder node.
        Parameters:
        placeHolder - the given place holder Node to compare the actual place holder to
        Returns:
        this assertion object
      • doesNotHavePlaceholder

        public SELF doesNotHavePlaceholder​(javafx.scene.Node placeHolder)
        Verifies that the actual ListView does not have the given placeHolder node.
        Parameters:
        placeHolder - the given place holder Node to compare the actual place holder to
        Returns:
        this assertion object
      • hasVisiblePlaceholder

        public SELF hasVisiblePlaceholder​(javafx.scene.Node placeHolder)
        Verifies that the actual ListView has the given placeHolder node and that the node is visible.
        Parameters:
        placeHolder - the given place holder Node to compare the actual place holder to
        Returns:
        this assertion object
      • doesNotHaveVisiblePlaceholder

        public SELF doesNotHaveVisiblePlaceholder​(javafx.scene.Node placeHolder)
        Verifies that the actual ListView does not have the given visible placeHolder. This assertion will pass for any invisible place holder.
        Parameters:
        placeHolder - the given place holder Node to compare the actual place holder to
        Returns:
        this assertion object