Class CommandResultResponseMatcher
java.lang.Object
org.hamcrest.BaseMatcher<CommandResult>
org.hamcrest.TypeSafeMatcher<CommandResult>
org.mockbukkit.mockbukkit.matcher.command.CommandResultResponseMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<CommandResult>,org.hamcrest.SelfDescribing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(CommandResult commandResult, org.hamcrest.Description mismatchDescription) voiddescribeTo(org.hamcrest.Description description) static @NotNull org.hamcrest.Matcher<CommandResult> doesNotHaveResponse(@NotNull String response) static @NotNull CommandResultResponseMatcherhasResponse(@NotNull String response) protected booleanmatchesSafely(CommandResult commandResult) 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
-
CommandResultResponseMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<CommandResult>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
protected void describeMismatchSafely(CommandResult commandResult, org.hamcrest.Description mismatchDescription) - Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<CommandResult>
-
hasResponse
@NotNull public static @NotNull CommandResultResponseMatcher hasResponse(@NotNull @NotNull String response) - Parameters:
response- The response the command result should have- Returns:
- A matcher which matches with any command result with specified response
-
doesNotHaveResponse
@NotNull public static @NotNull org.hamcrest.Matcher<CommandResult> doesNotHaveResponse(@NotNull @NotNull String response) - Parameters:
response- The response the command result should not have- Returns:
- A matcher which matches with any command result without specified response
-