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

public class HelpMapFactoryRegisteredMatcher extends org.hamcrest.TypeSafeMatcher<HelpMapMock>
  • Constructor Details

    • HelpMapFactoryRegisteredMatcher

      public HelpMapFactoryRegisteredMatcher(HelpTopicFactory<?> factory)
  • Method Details

    • matchesSafely

      protected boolean matchesSafely(HelpMapMock helpMapMock)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<HelpMapMock>
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • describeMismatchSafely

      public void describeMismatchSafely(HelpMapMock helpMapMock, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.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