Class HelpMapFactoryRegisteredMatcher
java.lang.Object
org.hamcrest.BaseMatcher<HelpMapMock>
org.hamcrest.TypeSafeMatcher<HelpMapMock>
org.mockbukkit.mockbukkit.matcher.help.HelpMapFactoryRegisteredMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<HelpMapMock>,org.hamcrest.SelfDescribing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeMismatchSafely(HelpMapMock helpMapMock, org.hamcrest.Description mismatchDescription) voiddescribeTo(org.hamcrest.Description description) static @NotNull org.hamcrest.Matcher<HelpMapMock> doesNotHaveFactoryRegistered(@NotNull HelpTopicFactory<?> factory) static @NotNull HelpMapFactoryRegisteredMatcherhasFactoryRegistered(@NotNull HelpTopicFactory<?> factory) protected booleanmatchesSafely(HelpMapMock helpMapMock) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
HelpMapFactoryRegisteredMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<HelpMapMock>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
public void describeMismatchSafely(HelpMapMock helpMapMock, org.hamcrest.Description mismatchDescription) - Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<HelpMapMock>
-
hasFactoryRegistered
@NotNull public static @NotNull HelpMapFactoryRegisteredMatcher hasFactoryRegistered(@NotNull @NotNull HelpTopicFactory<?> factory) - Parameters:
factory- The help topic factory required for there to be a match- Returns:
- A matcher which matches with any help map that has registered the specified help topic factory
-
doesNotHaveFactoryRegistered
@NotNull public static @NotNull org.hamcrest.Matcher<HelpMapMock> doesNotHaveFactoryRegistered(@NotNull @NotNull HelpTopicFactory<?> factory) - Parameters:
factory- The help topic factory required for there to be no match- Returns:
- A matcher which matches with any help map that has not registered the specified help topic factory
-