Module org.testfx
Package org.testfx.assertions.api
Class AbstractLabeledAssert<SELF extends AbstractLabeledAssert<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>
-
- 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:
AbstractButtonAssert
,LabeledAssert
public class AbstractLabeledAssert<SELF extends AbstractLabeledAssert<SELF>> extends AbstractParentAssert<SELF>
Base class for allLabeled
assertions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractLabeledAssert(javafx.scene.control.Labeled actual, Class<?> selfType)
-
Method Summary
Modifier and Type Method Description SELF
doesNotHaveText(String text)
Verifies that the actualLabeled
does not have exactly the giventext
.SELF
doesNotHaveText(org.hamcrest.Matcher<String> matcher)
Verifies that the actualLabeled
is not matched by the givenmatcher
.SELF
hasText(String text)
Verifies that the actualLabeled
has exactly the giventext
.SELF
hasText(org.hamcrest.Matcher<String> matcher)
Verifies that the actualLabeled
is matched by the givenmatcher
.-
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
-
AbstractLabeledAssert
protected AbstractLabeledAssert(javafx.scene.control.Labeled actual, Class<?> selfType)
-
-
Method Detail
-
hasText
public SELF hasText(String text)
Verifies that the actualLabeled
has exactly the giventext
.- Parameters:
text
- the given text to compare the actual text to- Returns:
- this assertion object
-
doesNotHaveText
public SELF doesNotHaveText(String text)
Verifies that the actualLabeled
does not have exactly the giventext
.- Parameters:
text
- the given text to compare the actual text to- Returns:
- this assertion object
-
hasText
public SELF hasText(org.hamcrest.Matcher<String> matcher)
Verifies that the actualLabeled
is matched by the givenmatcher
.- Parameters:
matcher
- theString
matcher to test the actual text with- Returns:
- this assertion object
-
-