- 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, 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 forStyleable
.static Dimension2DAssert
assertThat(javafx.geometry.Dimension2D actual)
Create assertion forDimension2D
.static ButtonAssert
assertThat(javafx.scene.control.Button actual)
Create assertion forButton
.static <T> ComboBoxAssert<T>
assertThat(javafx.scene.control.ComboBox<T> actual)
Create assertion forComboBox
.static LabeledAssert
assertThat(javafx.scene.control.Labeled actual)
Create assertion forLabeled
.static <T> ListViewAssert<T>
assertThat(javafx.scene.control.ListView<T> actual)
Create assertion forListView
.static MenuItemAssert
assertThat(javafx.scene.control.MenuItem actual)
Create assertion forMenuItem
.static <T> TableViewAssert<T>
assertThat(javafx.scene.control.TableView<T> actual)
Create assertion forTableView
.static TextInputControlAssert
assertThat(javafx.scene.control.TextInputControl actual)
Create assertion forTextInputControl
.static NodeAssert
assertThat(javafx.scene.Node actual)
Create assertion forNode
.static ColorAssert
assertThat(javafx.scene.paint.Color actual)
Create assertion forColor
.static ParentAssert
assertThat(javafx.scene.Parent actual)
Create assertion forParent
.static TextAssert
assertThat(javafx.scene.text.Text actual)
Create assertion forText
.static TextFlowAssert
assertThat(javafx.scene.text.TextFlow actual)
Create assertion forTextFlow
.static WindowAssert
assertThat(javafx.stage.Window actual)
Create assertion forWindow
.-
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
-
-
-
-
Method Detail
-
assertThat
public static ButtonAssert assertThat(javafx.scene.control.Button actual)
Create assertion forButton
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static ColorAssert assertThat(javafx.scene.paint.Color actual)
Create assertion forColor
.- 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 forComboBox
.- Type Parameters:
T
- the type of the value contained in theComboBox
- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static Dimension2DAssert assertThat(javafx.geometry.Dimension2D actual)
Create assertion forDimension2D
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static LabeledAssert assertThat(javafx.scene.control.Labeled actual)
Create assertion forLabeled
.- 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 forListView
.- Type Parameters:
T
- the type of the value contained in theListView
- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static MenuItemAssert assertThat(javafx.scene.control.MenuItem actual)
Create assertion forMenuItem
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static NodeAssert assertThat(javafx.scene.Node actual)
Create assertion forNode
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static ParentAssert assertThat(javafx.scene.Parent actual)
Create assertion forParent
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static StyleableAssert assertThat(javafx.css.Styleable actual)
Create assertion forStyleable
.- 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 forTableView
.- Type Parameters:
T
- the type of the value contained in theTableView
- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static TextAssert assertThat(javafx.scene.text.Text actual)
Create assertion forText
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static TextFlowAssert assertThat(javafx.scene.text.TextFlow actual)
Create assertion forTextFlow
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static TextInputControlAssert assertThat(javafx.scene.control.TextInputControl actual)
Create assertion forTextInputControl
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
public static WindowAssert assertThat(javafx.stage.Window actual)
Create assertion forWindow
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
-