Module org.testfx

Class Assertions

  • All Implemented Interfaces:
    org.assertj.core.api.InstanceOfAssertFactories

    public class Assertions
    extends org.assertj.core.api.Assertions
    The entry point for all TestFX assertions for different JavaFX types.
    • Field Summary

      • Fields inherited from interface org.assertj.core.api.InstanceOfAssertFactories

        ARRAY, ATOMIC_BOOLEAN, ATOMIC_INTEGER, ATOMIC_INTEGER_ARRAY, ATOMIC_INTEGER_FIELD_UPDATER, ATOMIC_LONG, ATOMIC_LONG_ARRAY, ATOMIC_LONG_FIELD_UPDATER, ATOMIC_MARKABLE_REFERENCE, ATOMIC_REFERENCE, ATOMIC_REFERENCE_ARRAY, ATOMIC_REFERENCE_FIELD_UPDATER, ATOMIC_STAMPED_REFERENCE, BIG_DECIMAL, BIG_INTEGER, BOOLEAN, BOOLEAN_ARRAY, BYTE, BYTE_ARRAY, CHAR_ARRAY, CHAR_SEQUENCE, CHARACTER, CLASS, COMPLETABLE_FUTURE, COMPLETION_STAGE, DATE, DOUBLE, DOUBLE_ARRAY, DOUBLE_PREDICATE, DOUBLE_STREAM, FILE, FLOAT, FLOAT_ARRAY, FUTURE, INPUT_STREAM, INSTANT, INT_ARRAY, INT_PREDICATE, INT_STREAM, INTEGER, ITERABLE, ITERATOR, LIST, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, LONG, LONG_ARRAY, LONG_PREDICATE, LONG_STREAM, MAP, OFFSET_DATE_TIME, OFFSET_TIME, OPTIONAL, OPTIONAL_DOUBLE, OPTIONAL_INT, OPTIONAL_LONG, PATH, PREDICATE, SHORT, SHORT_ARRAY, STREAM, STRING, STRING_BUFFER, STRING_BUILDER, THROWABLE, URI_TYPE, URL_TYPE, ZONED_DATE_TIME
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Assertions()  
    • Method Summary

      Modifier and Type Method Description
      static StyleableAssert assertThat​(javafx.css.Styleable actual)
      Create assertion for Styleable.
      static Dimension2DAssert assertThat​(javafx.geometry.Dimension2D actual)
      Create assertion for Dimension2D.
      static ButtonAssert assertThat​(javafx.scene.control.Button actual)
      Create assertion for Button.
      static <T> ComboBoxAssert<T> assertThat​(javafx.scene.control.ComboBox<T> actual)
      Create assertion for ComboBox.
      static LabeledAssert assertThat​(javafx.scene.control.Labeled actual)
      Create assertion for Labeled.
      static <T> ListViewAssert<T> assertThat​(javafx.scene.control.ListView<T> actual)
      Create assertion for ListView.
      static MenuItemAssert assertThat​(javafx.scene.control.MenuItem actual)
      Create assertion for MenuItem.
      static <T> TableViewAssert<T> assertThat​(javafx.scene.control.TableView<T> actual)
      Create assertion for TableView.
      static TextInputControlAssert assertThat​(javafx.scene.control.TextInputControl actual)
      Create assertion for TextInputControl.
      static NodeAssert assertThat​(javafx.scene.Node actual)
      Create assertion for Node.
      static ColorAssert assertThat​(javafx.scene.paint.Color actual)
      Create assertion for Color.
      static ParentAssert assertThat​(javafx.scene.Parent actual)
      Create assertion for Parent.
      static TextAssert assertThat​(javafx.scene.text.Text actual)
      Create assertion for Text.
      static TextFlowAssert assertThat​(javafx.scene.text.TextFlow actual)
      Create assertion for TextFlow.
      static WindowAssert assertThat​(javafx.stage.Window actual)
      Create assertion for Window.
      • Methods inherited from class org.assertj.core.api.Assertions

        allOf, allOf, anyOf, anyOf, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThatCode, assertThatExceptionOfType, assertThatIllegalArgumentException, assertThatIllegalStateException, assertThatIOException, assertThatNullPointerException, assertThatObject, assertThatThrownBy, assertThatThrownBy, atIndex, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, catchThrowable, catchThrowableOfType, contentOf, contentOf, contentOf, contentOf, contentOf, contentOf, doesNotHave, entry, extractProperty, extractProperty, fail, fail, fail, failBecauseExceptionWasNotThrown, filter, filter, from, in, linesOf, linesOf, linesOf, linesOf, linesOf, linesOf, not, not, notIn, offset, offset, registerCustomDateFormat, registerCustomDateFormat, registerFormatterForType, setAllowComparingPrivateFields, setAllowExtractingPrivateFields, setExtractBareNamePropertyMethods, setLenientDateParsing, setMaxElementsForPrinting, setMaxLengthForSingleLineDescription, setRemoveAssertJRelatedElementsFromStackTrace, shouldHaveThrown, tuple, useDefaultDateFormatsOnly, useDefaultRepresentation, useRepresentation, within, within, within, within, within, within, within, within, within, withinPercentage, withinPercentage, withinPercentage, withPrecision, withPrecision
    • Constructor Detail

      • Assertions

        protected Assertions()
    • Method Detail

      • assertThat

        public static ButtonAssert assertThat​(javafx.scene.control.Button actual)
        Create assertion for Button.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static ColorAssert assertThat​(javafx.scene.paint.Color actual)
        Create assertion for Color.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static <T> ComboBoxAssert<T> assertThat​(javafx.scene.control.ComboBox<T> actual)
        Create assertion for ComboBox.
        Type Parameters:
        T - the type of the value contained in the ComboBox
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static Dimension2DAssert assertThat​(javafx.geometry.Dimension2D actual)
        Create assertion for Dimension2D.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static LabeledAssert assertThat​(javafx.scene.control.Labeled actual)
        Create assertion for Labeled.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static <T> ListViewAssert<T> assertThat​(javafx.scene.control.ListView<T> actual)
        Create assertion for ListView.
        Type Parameters:
        T - the type of the value contained in the ListView
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static MenuItemAssert assertThat​(javafx.scene.control.MenuItem actual)
        Create assertion for MenuItem.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static NodeAssert assertThat​(javafx.scene.Node actual)
        Create assertion for Node.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static ParentAssert assertThat​(javafx.scene.Parent actual)
        Create assertion for Parent.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static StyleableAssert assertThat​(javafx.css.Styleable actual)
        Create assertion for Styleable.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static <T> TableViewAssert<T> assertThat​(javafx.scene.control.TableView<T> actual)
        Create assertion for TableView.
        Type Parameters:
        T - the type of the value contained in the TableView
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static TextAssert assertThat​(javafx.scene.text.Text actual)
        Create assertion for Text.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static TextFlowAssert assertThat​(javafx.scene.text.TextFlow actual)
        Create assertion for TextFlow.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static TextInputControlAssert assertThat​(javafx.scene.control.TextInputControl actual)
        Create assertion for TextInputControl.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static WindowAssert assertThat​(javafx.stage.Window actual)
        Create assertion for Window.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object