Module org.testfx
Package org.testfx.assertions.api
Class AbstractStyleableAssert<SELF extends AbstractStyleableAssert<SELF>>
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,javafx.css.Styleable>
-
- org.testfx.assertions.api.AbstractStyleableAssert<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:
AbstractMenuItemAssert
,AbstractNodeAssert
,StyleableAssert
public class AbstractStyleableAssert<SELF extends AbstractStyleableAssert<SELF>> extends org.assertj.core.api.AbstractAssert<SELF,javafx.css.Styleable>
Base class for allStyleable
assertions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractStyleableAssert(javafx.css.Styleable actual, Class<?> selfType)
-
Method Summary
Modifier and Type Method Description SELF
doesNotHaveId(String id)
Verifies that the actualStyleable
does not have the given CSS id.SELF
doesNotHaveStyle(String style)
Verifies that the actualStyleable
does not have the given CSS style.SELF
doesNotHaveStyleableParent(javafx.css.Styleable styleableParent)
Verifies that the actualStyleable
does not have the given parent.SELF
doesNotHaveTypeSelector(String typeSelector)
Verifies that the actualStyleable
does not have the given type selector.SELF
hasId(String id)
Verifies that the actualStyleable
has the given CSS id.SELF
hasStyle(String style)
Verifies that the actualStyleable
has the given CSS style.SELF
hasStyleableParent(javafx.css.Styleable styleableParent)
Verifies that the actualStyleable
has the given parent.SELF
hasTypeSelector(String typeSelector)
Verifies that the actualStyleable
has the given type selector.-
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
-
AbstractStyleableAssert
protected AbstractStyleableAssert(javafx.css.Styleable actual, Class<?> selfType)
-
-
Method Detail
-
hasTypeSelector
public SELF hasTypeSelector(String typeSelector)
Verifies that the actualStyleable
has the given type selector.- Parameters:
typeSelector
- the given type selector to compare the actual type selector to- Returns:
- this assertion object
-
doesNotHaveTypeSelector
public SELF doesNotHaveTypeSelector(String typeSelector)
Verifies that the actualStyleable
does not have the given type selector.- Parameters:
typeSelector
- the given type selector to compare the actual type selector to- Returns:
- this assertion object
-
hasId
public SELF hasId(String id)
Verifies that the actualStyleable
has the given CSS id.- Parameters:
id
- the given CSS id to compare the actual CSS id to- Returns:
- this assertion object
-
doesNotHaveId
public SELF doesNotHaveId(String id)
Verifies that the actualStyleable
does not have the given CSS id.- Parameters:
id
- the given CSS id to compare the actual CSS id to- Returns:
- this assertion object
-
hasStyle
public SELF hasStyle(String style)
Verifies that the actualStyleable
has the given CSS style.- Parameters:
style
- the given CSS style to compare the actual CSS style to- Returns:
- this assertion object
-
doesNotHaveStyle
public SELF doesNotHaveStyle(String style)
Verifies that the actualStyleable
does not have the given CSS style.- Parameters:
style
- the given CSS style to compare the actual CSS style to- Returns:
- this assertion object
-
hasStyleableParent
public SELF hasStyleableParent(javafx.css.Styleable styleableParent)
Verifies that the actualStyleable
has the given parent.- Parameters:
styleableParent
- the given parent to compare the actual styleable parent to- Returns:
- this assertion object
-
doesNotHaveStyleableParent
public SELF doesNotHaveStyleableParent(javafx.css.Styleable styleableParent)
Verifies that the actualStyleable
does not have the given parent.- Parameters:
styleableParent
- the given parent to compare the actual styleable parent to- Returns:
- this assertion object
-
-