Class CommandResultSucceedMatcher

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

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

    • CommandResultSucceedMatcher

      public CommandResultSucceedMatcher()
  • 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

      public void describeMismatchSafely(CommandResult commandResult, org.hamcrest.Description description)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<CommandResult>
    • hasSucceeded

      @NotNull public static @NotNull CommandResultSucceedMatcher hasSucceeded()
      Returns:
      A matcher which matches with any command result with a success code
    • hasFailed

      @NotNull public static @NotNull org.hamcrest.Matcher<CommandResult> hasFailed()
      Returns:
      A matcher which matches with any command result without a success code