Module org.testfx

Class AbstractParentAssert<SELF extends AbstractParentAssert<SELF>>

    • Constructor Detail

      • AbstractParentAssert

        protected AbstractParentAssert​(javafx.scene.Parent actual,
                                       Class<?> selfType)
    • Method Detail

      • hasAnyChild

        public SELF hasAnyChild()
        Verifies that the actual Parent has at least one child.
        Returns:
        this assertion object
      • hasNoChildren

        public SELF hasNoChildren()
        Verifies that the actual Parent has no children.
        Returns:
        this assertion object
      • hasExactlyNumChildren

        public SELF hasExactlyNumChildren​(int amount)
        Verifies that the actual Parent has exactly the given amount of children.
        Parameters:
        amount - the given amount of children that the actual Parent should exactly have
        Returns:
        this assertion object
      • doesNotHaveExactlyNumChildren

        public SELF doesNotHaveExactlyNumChildren​(int amount)
        Verifies that the actual Parent does not have exactly the given amount of children.
        Parameters:
        amount - the given amount of children that the actual Parent should not exactly have
        Returns:
        this assertion object