public class AbstractTextAssert<SELF extends AbstractTextAssert<SELF>> extends AbstractNodeAssert<SELF>
Text assertions.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTextAssert(javafx.scene.text.Text actual,
java.lang.Class<?> selfType) |
| Modifier and Type | Method and Description |
|---|---|
SELF |
doesNotHaveFont(javafx.scene.text.Font font)
Verifies that the actual
Text does not have the given font. |
SELF |
doesNotHaveFontSmoothingType(javafx.scene.text.FontSmoothingType smoothingType)
Verifies that the actual
Text does not have the given smoothingType
(either FontSmoothingType.GRAY or FontSmoothingType.LCD). |
SELF |
doesNotHaveStrikethrough()
Verifies that the actual
Text does not have strikethrough (that is, should be drawn
with a line through it). |
SELF |
doesNotHaveText(org.hamcrest.Matcher<java.lang.String> matcher)
Verifies that the actual
Text is not matched by the given matcher. |
SELF |
doesNotHaveText(java.lang.String text)
Verifies that the actual
Text does not have exactly the given text. |
SELF |
hasFont(javafx.scene.text.Font font)
Verifies that the actual
Text has the given font. |
SELF |
hasFontSmoothingType(javafx.scene.text.FontSmoothingType smoothingType)
Verifies that the actual
Text has the given smoothingType
(either FontSmoothingType.GRAY or FontSmoothingType.LCD). |
SELF |
hasStrikethrough()
Verifies that the actual
Text has strikethrough (that is, should be drawn
with a line through it). |
SELF |
hasText(org.hamcrest.Matcher<java.lang.String> matcher)
Verifies that the actual
Text is matched by the given matcher. |
SELF |
hasText(java.lang.String text)
Verifies that the actual
Text has exactly the given text. |
SELF |
isNotUnderlined()
Verifies that the actual
Text is not underlined (that is, should be drawn
with a line below it). |
SELF |
isUnderlined()
Verifies that the actual
Text is underlined (that is, should be drawn
with a line below it). |
doesNotHaveChild, hasChild, hasExactlyChildren, isDisabled, isEnabled, isFocused, isInvisible, isNotFocused, isVisibleas, as, 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, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorprotected AbstractTextAssert(javafx.scene.text.Text actual,
java.lang.Class<?> selfType)
public SELF hasText(java.lang.String text)
Text has exactly the given text.text - the given text to compare the actual text topublic SELF doesNotHaveText(java.lang.String text)
Text does not have exactly the given text.text - the given text to compare the actual text topublic SELF hasText(org.hamcrest.Matcher<java.lang.String> matcher)
Text is matched by the given matcher.matcher - the String matcher to test the actual text withpublic SELF doesNotHaveText(org.hamcrest.Matcher<java.lang.String> matcher)
Text is not matched by the given matcher.matcher - the String matcher to test the actual text withpublic SELF hasFont(javafx.scene.text.Font font)
Text has the given font.font - the given font to compare the actual font of the text topublic SELF doesNotHaveFont(javafx.scene.text.Font font)
Text does not have the given font.font - the given font to compare the actual font of the text topublic SELF hasFontSmoothingType(javafx.scene.text.FontSmoothingType smoothingType)
Text has the given smoothingType
(either FontSmoothingType.GRAY or FontSmoothingType.LCD).smoothingType - the given font smoothing type to compare the actual font smoothing type
of the text topublic SELF doesNotHaveFontSmoothingType(javafx.scene.text.FontSmoothingType smoothingType)
Text does not have the given smoothingType
(either FontSmoothingType.GRAY or FontSmoothingType.LCD).smoothingType - the given font smoothing type to compare the actual font smoothing type
of the text topublic SELF hasStrikethrough()
Text has strikethrough (that is, should be drawn
with a line through it).public SELF doesNotHaveStrikethrough()
Text does not have strikethrough (that is, should be drawn
with a line through it).public SELF isUnderlined()
Text is underlined (that is, should be drawn
with a line below it).public SELF isNotUnderlined()
Text is not underlined (that is, should be drawn
with a line below it).