Module org.testfx

Class Assertions


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

      Constructors 
      Modifier Constructor Description
      protected Assertions()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Dimension2DAssert assertThat​(Dimension2D actual)
      Create assertion for Dimension2D.
      static ButtonAssert assertThat​(Button actual)
      Create assertion for Button.
      static <T> ComboBoxAssert<T> assertThat​(ComboBox<T> actual)
      Create assertion for ComboBox.
      static LabeledAssert assertThat​(Labeled actual)
      Create assertion for Button.
      static <T> ListViewAssert<T> assertThat​(ListView<T> actual)
      Create assertion for ListView.
      static <T> TableViewAssert<T> assertThat​(TableView<T> actual)
      Create assertion for TableView.
      static TextInputControlAssert assertThat​(TextInputControl actual)
      Create assertion for TextInputControl.
      static NodeAssert assertThat​(Node actual)
      Create assertion for Button.
      static ColorAssert assertThat​(Color actual)
      Create assertion for Color.
      static ParentAssert assertThat​(Parent actual)
      Create assertion for Parent.
      static TextAssert assertThat​(Text actual)
      Create assertion for Text.
      static TextFlowAssert assertThat​(TextFlow actual)
      Create assertion for TextFlow.
      static WindowAssert assertThat​(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, 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, 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​(Button actual)
        Create assertion for Button.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

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

        public static <T> ComboBoxAssert<T> assertThat​(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 LabeledAssert assertThat​(Labeled actual)
        Create assertion for Button.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

        public static <T> ListViewAssert<T> assertThat​(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 NodeAssert assertThat​(Node actual)
        Create assertion for Button.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

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

        public static <T> TableViewAssert<T> assertThat​(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​(Text actual)
        Create assertion for Text.
        Parameters:
        actual - the actual value
        Returns:
        the created assertion object
      • assertThat

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

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