Package org.testfx.assertions.api
Class AbstractTextAssert<SELF extends AbstractTextAssert<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.AbstractTextAssert<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:
TextAssert
public class AbstractTextAssert<SELF extends AbstractTextAssert<SELF>>
extends AbstractNodeAssert<SELF>
Base class for all
Text assertions.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTextAssert(javafx.scene.text.Text actual, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptiondoesNotHaveFont(javafx.scene.text.Font font) Verifies that the actualTextdoes not have the givenfont.doesNotHaveFontSmoothingType(javafx.scene.text.FontSmoothingType smoothingType) Verifies that the actualTextdoes not have the givensmoothingType(eitherFontSmoothingType.GRAYorFontSmoothingType.LCD).Verifies that the actualTextdoes not have strikethrough (that is, should be drawn with a line through it).doesNotHaveText(String text) Verifies that the actualTextdoes not have exactly the giventext.doesNotHaveText(org.hamcrest.Matcher<String> matcher) Verifies that the actualTextis not matched by the givenmatcher.hasFont(javafx.scene.text.Font font) Verifies that the actualTexthas the givenfont.hasFontSmoothingType(javafx.scene.text.FontSmoothingType smoothingType) Verifies that the actualTexthas the givensmoothingType(eitherFontSmoothingType.GRAYorFontSmoothingType.LCD).Verifies that the actualTexthas strikethrough (that is, should be drawn with a line through it).Verifies that the actualTexthas exactly the giventext.Verifies that the actualTextis matched by the givenmatcher.Verifies that the actualTextis not underlined (that is, should be drawn with a line below it).Verifies that the actualTextis underlined (that is, should be drawn with a line below it).Methods inherited from class org.testfx.assertions.api.AbstractNodeAssert
doesNotHaveChild, hasChild, hasExactlyChildren, isDisabled, isEnabled, isFocused, isInvisible, isNotFocused, isVisibleMethods inherited from class org.testfx.assertions.api.AbstractStyleableAssert
doesNotHaveId, doesNotHaveStyle, doesNotHaveStyleableParent, doesNotHaveTypeSelector, hasId, hasStyle, hasStyleableParent, hasTypeSelectorMethods inherited from class org.assertj.core.api.AbstractAssert
actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
AbstractTextAssert
-
-
Method Details
-
hasText
Verifies that the actualTexthas exactly the giventext.- Parameters:
text- the given text to compare the actual text to- Returns:
- this assertion object
-
doesNotHaveText
Verifies that the actualTextdoes not have exactly the giventext.- Parameters:
text- the given text to compare the actual text to- Returns:
- this assertion object
-
hasText
Verifies that the actualTextis matched by the givenmatcher.- Parameters:
matcher- theStringmatcher to test the actual text with- Returns:
- this assertion object
-
doesNotHaveText
Verifies that the actualTextis not matched by the givenmatcher.- Parameters:
matcher- theStringmatcher to test the actual text with- Returns:
- this assertion object
-
hasFont
Verifies that the actualTexthas the givenfont.- Parameters:
font- the given font to compare the actual font of the text to- Returns:
- this assertion object
-
doesNotHaveFont
Verifies that the actualTextdoes not have the givenfont.- Parameters:
font- the given font to compare the actual font of the text to- Returns:
- this assertion object
-
hasFontSmoothingType
Verifies that the actualTexthas the givensmoothingType(eitherFontSmoothingType.GRAYorFontSmoothingType.LCD).- Parameters:
smoothingType- the given font smoothing type to compare the actual font smoothing type of the text to- Returns:
- this assertion object
-
doesNotHaveFontSmoothingType
Verifies that the actualTextdoes not have the givensmoothingType(eitherFontSmoothingType.GRAYorFontSmoothingType.LCD).- Parameters:
smoothingType- the given font smoothing type to compare the actual font smoothing type of the text to- Returns:
- this assertion object
-
hasStrikethrough
Verifies that the actualTexthas strikethrough (that is, should be drawn with a line through it).- Returns:
- this assertion object
-
doesNotHaveStrikethrough
Verifies that the actualTextdoes not have strikethrough (that is, should be drawn with a line through it).- Returns:
- this assertion object
-
isUnderlined
Verifies that the actualTextis underlined (that is, should be drawn with a line below it).- Returns:
- this assertion object
-
isNotUnderlined
Verifies that the actualTextis not underlined (that is, should be drawn with a line below it).- Returns:
- this assertion object
-