Module org.testfx
Package org.testfx.assertions.api
Class AbstractButtonAssert<SELF extends AbstractButtonAssert<SELF>>
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,javafx.css.Styleable>
-
- org.testfx.assertions.api.AbstractStyleableAssert<SELF>
-
- org.testfx.assertions.api.AbstractNodeAssert<SELF>
-
- org.testfx.assertions.api.AbstractParentAssert<SELF>
-
- org.testfx.assertions.api.AbstractLabeledAssert<SELF>
-
- org.testfx.assertions.api.AbstractButtonAssert<SELF>
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<SELF,javafx.css.Styleable>
,org.assertj.core.api.Descriptable<SELF>
,org.assertj.core.api.ExtensionPoints<SELF,javafx.css.Styleable>
- Direct Known Subclasses:
ButtonAssert
public class AbstractButtonAssert<SELF extends AbstractButtonAssert<SELF>> extends AbstractLabeledAssert<SELF>
Base class for allButton
assertions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractButtonAssert(javafx.scene.control.Button actual, Class<?> selfType)
-
Method Summary
Modifier and Type Method Description SELF
isCancelButton()
Verifies that the actualButton
is a cancel button.SELF
isDefaultButton()
Verifies that the actualButton
is a default button.SELF
isNotCancelButton()
Verifies that the actualButton
is not a cancel button.SELF
isNotDefaultButton()
Verifies that the actualButton
is not a default button.-
Methods inherited from class org.testfx.assertions.api.AbstractLabeledAssert
doesNotHaveText, doesNotHaveText, hasText, hasText
-
Methods inherited from class org.testfx.assertions.api.AbstractParentAssert
doesNotHaveExactlyNumChildren, hasAnyChild, hasExactlyNumChildren, hasNoChildren
-
Methods inherited from class org.testfx.assertions.api.AbstractNodeAssert
doesNotHaveChild, hasChild, hasExactlyChildren, isDisabled, isEnabled, isFocused, isInvisible, isNotFocused, isVisible
-
Methods inherited from class org.testfx.assertions.api.AbstractStyleableAssert
doesNotHaveId, doesNotHaveStyle, doesNotHaveStyleableParent, doesNotHaveTypeSelector, hasId, hasStyle, hasStyleableParent, hasTypeSelector
-
Methods inherited from class org.assertj.core.api.AbstractAssert
as, as, asInstanceOf, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
AbstractButtonAssert
protected AbstractButtonAssert(javafx.scene.control.Button actual, Class<?> selfType)
-
-
Method Detail
-
isCancelButton
public SELF isCancelButton()
Verifies that the actualButton
is a cancel button.- Returns:
- this assertion object
-
isNotCancelButton
public SELF isNotCancelButton()
Verifies that the actualButton
is not a cancel button.- Returns:
- this assertion object
-
isDefaultButton
public SELF isDefaultButton()
Verifies that the actualButton
is a default button.- Returns:
- this assertion object
-
isNotDefaultButton
public SELF isNotDefaultButton()
Verifies that the actualButton
is not a default button.- Returns:
- this assertion object
-
-