- All Implemented Interfaces:
org.hamcrest.Matcher<BlockMock>, org.hamcrest.SelfDescribing
public class BlockMaterialTypeMatcher
extends org.hamcrest.TypeSafeMatcher<BlockMock>
-
Method Summary
protected void
void
static @NotNull org.hamcrest.Matcher<BlockMock>
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(BlockMock blockMock)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<BlockMock>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
describeMismatchSafely
protected void describeMismatchSafely(BlockMock item,
org.hamcrest.Description mismatchDescription)
- Overrides:
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<BlockMock>
-
hasMaterial
- Parameters:
material - The material that the block should have
- Returns:
- A matcher which matches blocks with the specified material
-
doesNotHaveMaterial
@NotNull
public static @NotNull org.hamcrest.Matcher<BlockMock> doesNotHaveMaterial(@NotNull
@NotNull Material material)
- Parameters:
material - The material that the block should not have
- Returns:
- A matcher which matches blocks without the specified material