Package org.testfx.assertions.api
Class AbstractMenuItemAssert<SELF extends AbstractMenuItemAssert<SELF>>
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,javafx.css.Styleable>
-
- org.testfx.assertions.api.AbstractStyleableAssert<SELF>
-
- org.testfx.assertions.api.AbstractMenuItemAssert<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:
MenuItemAssert
public class AbstractMenuItemAssert<SELF extends AbstractMenuItemAssert<SELF>> extends AbstractStyleableAssert<SELF>
Base class for allMenuItemassertions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMenuItemAssert(javafx.scene.control.MenuItem actual, java.lang.Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELFdoesNotHaveText(java.lang.String text)Verifies that the actualMenudoes not have exactly the giventext.SELFdoesNotHaveText(org.hamcrest.Matcher<java.lang.String> matcher)Verifies that the actualMenuItemis not matched by the givenmatcher.SELFhasText(java.lang.String text)Verifies that the actualMenuItemhas exactly the giventext.SELFhasText(org.hamcrest.Matcher<java.lang.String> matcher)Verifies that the actualMenuItemis matched by the givenmatcher.-
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
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, withThreadDumpOnError
-
-
-
-
Method Detail
-
hasText
public SELF hasText(java.lang.String text)
Verifies that the actualMenuItemhas exactly the giventext.- Parameters:
text- the given text to compare the actual text to- Returns:
- this assertion object
-
doesNotHaveText
public SELF doesNotHaveText(java.lang.String text)
Verifies that the actualMenudoes 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<java.lang.String> matcher)
Verifies that the actualMenuItemis matched by the givenmatcher.- Parameters:
matcher- theStringmatcher to test the actual text with- Returns:
- this assertion object
-
doesNotHaveText
public SELF doesNotHaveText(org.hamcrest.Matcher<java.lang.String> matcher)
Verifies that the actualMenuItemis not matched by the givenmatcher.- Parameters:
matcher- theStringmatcher to test the actual text with- Returns:
- this assertion object
-
-