Class Assertions

java.lang.Object
org.assertj.core.api.Assertions
org.testfx.assertions.api.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, ARRAY_2D, 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_2D_ARRAY, BOOLEAN_ARRAY, BYTE, BYTE_2D_ARRAY, BYTE_ARRAY, CHAR_2D_ARRAY, CHAR_ARRAY, CHAR_SEQUENCE, CHARACTER, CLASS, COLLECTION, COMPLETABLE_FUTURE, COMPLETION_STAGE, DATE, DOUBLE, DOUBLE_2D_ARRAY, DOUBLE_ARRAY, DOUBLE_PREDICATE, DOUBLE_STREAM, DURATION, FILE, FLOAT, FLOAT_2D_ARRAY, FLOAT_ARRAY, FUTURE, INPUT_STREAM, INSTANT, INT_2D_ARRAY, INT_ARRAY, INT_PREDICATE, INT_STREAM, INTEGER, ITERABLE, ITERATOR, LIST, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, LONG, LONG_2D_ARRAY, LONG_ADDER, LONG_ARRAY, LONG_PREDICATE, LONG_STREAM, MAP, MATCHER, OFFSET_DATE_TIME, OFFSET_TIME, OPTIONAL, OPTIONAL_DOUBLE, OPTIONAL_INT, OPTIONAL_LONG, PATH, PERIOD, PREDICATE, SHORT, SHORT_2D_ARRAY, SHORT_ARRAY, SPLITERATOR, STREAM, STRING, STRING_BUFFER, STRING_BUILDER, THROWABLE, URI_TYPE, URL_TYPE, ZONED_DATE_TIME
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    assertThat(javafx.css.Styleable actual)
    Create assertion for Styleable.
    assertThat(javafx.geometry.Dimension2D actual)
    Create assertion for Dimension2D.
    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.
    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.
    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.
    assertThat(javafx.scene.control.TextInputControl actual)
    Create assertion for TextInputControl.
    static NodeAssert
    assertThat(javafx.scene.Node actual)
    Create assertion for Node.
    assertThat(javafx.scene.paint.Color actual)
    Create assertion for Color.
    assertThat(javafx.scene.Parent actual)
    Create assertion for Parent.
    static TextAssert
    assertThat(javafx.scene.text.Text actual)
    Create assertion for Text.
    assertThat(javafx.scene.text.TextFlow actual)
    Create assertion for TextFlow.
    assertThat(javafx.stage.Window actual)
    Create assertion for Window.

    Methods inherited from class org.assertj.core.api.Assertions

    allOf, allOf, allOf, anyOf, anyOf, anyOf, as, 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, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThatCharSequence, assertThatCode, assertThatCollection, assertThatComparable, assertThatException, assertThatExceptionOfType, assertThatIllegalArgumentException, assertThatIllegalStateException, assertThatIndexOutOfBoundsException, assertThatIOException, assertThatIterable, assertThatIterator, assertThatList, assertThatNoException, assertThatNullPointerException, assertThatObject, assertThatPath, assertThatPredicate, assertThatReflectiveOperationException, assertThatRuntimeException, assertThatStream, assertThatThrownBy, assertThatThrownBy, assertWith, atIndex, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, byLessThan, catchException, catchIllegalArgumentException, catchIllegalStateException, catchIndexOutOfBoundsException, catchIOException, catchNullPointerException, catchReflectiveOperationException, catchRuntimeException, 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, linesOf, linesOf, linesOf, not, not, notIn, offset, offset, registerCustomDateFormat, registerCustomDateFormat, registerFormatterForType, setAllowComparingPrivateFields, setAllowExtractingPrivateFields, setDescriptionConsumer, setExtractBareNamePropertyMethods, setLenientDateParsing, setMaxElementsForPrinting, setMaxLengthForSingleLineDescription, setMaxStackTraceElementsDisplayed, setPrintAssertionsDescription, setRemoveAssertJRelatedElementsFromStackTrace, shouldHaveThrown, tuple, useDefaultDateFormatsOnly, useDefaultRepresentation, useRepresentation, within, within, within, within, within, within, within, within, within, withinPercentage, withinPercentage, withinPercentage, withMarginOf, withPrecision, withPrecision

    Methods inherited from class java.lang.Object

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

    • Assertions

      protected Assertions()
  • Method Details

    • 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