Class ParentMatchers


  • public class ParentMatchers
    extends java.lang.Object
    TestFX matchers for Parent nodes.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ParentMatchers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.hamcrest.Matcher<javafx.scene.Parent> hasChild()
      Creates a matcher that matches all Parents that have at least one child.
      static org.hamcrest.Matcher<javafx.scene.Parent> hasChildren​(int amount)
      Creates a matcher that matches all Parents that have exactly amount children.
      private static java.lang.String toText​(javafx.collections.ObservableList<javafx.scene.Node> children)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParentMatchers

        private ParentMatchers()
    • Method Detail

      • hasChild

        public static org.hamcrest.Matcher<javafx.scene.Parent> hasChild()
        Creates a matcher that matches all Parents that have at least one child.
      • hasChildren

        public static org.hamcrest.Matcher<javafx.scene.Parent> hasChildren​(int amount)
        Creates a matcher that matches all Parents that have exactly amount children.
      • toText

        private static java.lang.String toText​(javafx.collections.ObservableList<javafx.scene.Node> children)