Class CommandResultAnyResponseMatcher

java.lang.Object
org.hamcrest.BaseMatcher<CommandResult>
org.hamcrest.TypeSafeMatcher<CommandResult>
org.mockbukkit.mockbukkit.matcher.command.CommandResultAnyResponseMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<CommandResult>, org.hamcrest.SelfDescribing

public class CommandResultAnyResponseMatcher extends org.hamcrest.TypeSafeMatcher<CommandResult>
  • Constructor Details

    • CommandResultAnyResponseMatcher

      public CommandResultAnyResponseMatcher()
  • Method Details

    • matchesSafely

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

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

      protected void describeMismatchSafely(CommandResult commandResult, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<CommandResult>
    • hasAnyResponse

      @NotNull public static @NotNull CommandResultAnyResponseMatcher hasAnyResponse()
      Returns:
      A matcher which matches with any command result with any response
    • hasNoResponse

      @NotNull public static @NotNull org.hamcrest.Matcher<CommandResult> hasNoResponse()
      Returns:
      A matcher which matches with any command result with no response