Module org.testfx

Class LabeledMatchers


  • public class LabeledMatchers
    extends Object
    TestFX matchers for Labeled controls.
    • Method Summary

      Modifier and Type Method Description
      static org.hamcrest.Matcher<javafx.scene.control.Labeled> hasText​(String text)
      Creates a matcher that matches all Labeled objects that have the given text as their text.
      static org.hamcrest.Matcher<javafx.scene.control.Labeled> hasText​(org.hamcrest.Matcher<String> matcher)
      Creates a matcher that matches all Labeled objects whose text matches the given matcher.
    • Method Detail

      • hasText

        public static org.hamcrest.Matcher<javafx.scene.control.Labeled> hasText​(String text)
        Creates a matcher that matches all Labeled objects that have the given text as their text.
        Parameters:
        text - the String the matched Labeleds should have as their text
      • hasText

        public static org.hamcrest.Matcher<javafx.scene.control.Labeled> hasText​(org.hamcrest.Matcher<String> matcher)
        Creates a matcher that matches all Labeled objects whose text matches the given matcher.
        Parameters:
        matcher - the Matcher<String> that the Labeleds text should match