- All Implemented Interfaces:
org.hamcrest.Matcher<AllayMock>, org.hamcrest.SelfDescribing
public class AllayCurrentItemMatcher
extends org.hamcrest.TypeSafeMatcher<AllayMock>
-
Method Summary
protected void
void
static @NotNull org.hamcrest.Matcher<AllayMock>
protected boolean
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Method Details
-
matchesSafely
protected boolean matchesSafely(AllayMock allay)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<AllayMock>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
describeMismatchSafely
protected void describeMismatchSafely(AllayMock allay,
org.hamcrest.Description mismatchDescription)
- Overrides:
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<AllayMock>
-
hasCurrentItem
- Parameters:
currentItem - The material of the item to be held for there to be a match
- Returns:
- A matcher which matches with any allay holding the specified item
-
doesNotHaveCurrentItem
@NotNull
public static @NotNull org.hamcrest.Matcher<AllayMock> doesNotHaveCurrentItem(@NotNull
@NotNull Material currentItem)
- Parameters:
currentItem - The material of the item to be held for there to be no match
- Returns:
- A matcher which matches with any allay not holding the specified item