Package org.testfx.assertions.api
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic 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, 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
-
Constructor Details
-
Assertions
protected Assertions()
-
-
Method Details
-
assertThat
Create assertion forButton
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
Create assertion forColor
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
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
Create assertion forDimension2D
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
Create assertion forLabeled
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
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
Create assertion forMenuItem
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
Create assertion forNode
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
Create assertion forParent
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
Create assertion forStyleable
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
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
Create assertion forText
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
Create assertion forTextFlow
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
Create assertion forTextInputControl
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-
assertThat
Create assertion forWindow
.- Parameters:
actual
- the actual value- Returns:
- the created assertion object
-