Class ButtonMatchers

java.lang.Object
org.testfx.matcher.control.ButtonMatchers

public class ButtonMatchers extends Object
TestFX matchers for Button controls.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.hamcrest.Matcher<javafx.scene.control.Button>
    Creates a matcher that matches all Buttons that are cancel buttons.
    static org.hamcrest.Matcher<javafx.scene.control.Button>
    Creates a matcher that matches all Buttons that are default buttons.

    Methods inherited from class java.lang.Object

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

    • ButtonMatchers

      private ButtonMatchers()
  • Method Details

    • isCancelButton

      public static org.hamcrest.Matcher<javafx.scene.control.Button> isCancelButton()
      Creates a matcher that matches all Buttons that are cancel buttons.
    • isDefaultButton

      public static org.hamcrest.Matcher<javafx.scene.control.Button> isDefaultButton()
      Creates a matcher that matches all Buttons that are default buttons.