Class MessageTargetReceivedMessageMatcher
java.lang.Object
org.hamcrest.BaseMatcher<MessageTarget>
org.hamcrest.TypeSafeMatcher<MessageTarget>
org.mockbukkit.mockbukkit.matcher.command.MessageTargetReceivedMessageMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<MessageTarget>,org.hamcrest.SelfDescribing
public class MessageTargetReceivedMessageMatcher
extends org.hamcrest.TypeSafeMatcher<MessageTarget>
-
Constructor Summary
ConstructorsConstructorDescriptionMessageTargetReceivedMessageMatcher(net.kyori.adventure.text.Component expected) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(MessageTarget messageTarget, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) static @NotNull org.hamcrest.Matcher<MessageTarget> hasNotReceived(@NotNull String expected) static @NotNull MessageTargetReceivedMessageMatcherhasReceived(@NotNull String expected) static @NotNull MessageTargetReceivedMessageMatcherhasReceived(@NotNull net.kyori.adventure.text.Component expected) protected booleanmatchesSafely(MessageTarget messageTarget) 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
-
MessageTargetReceivedMessageMatcher
public MessageTargetReceivedMessageMatcher(net.kyori.adventure.text.Component expected)
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<MessageTarget>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
protected void describeMismatchSafely(MessageTarget messageTarget, org.hamcrest.Description description) - Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<MessageTarget>
-
hasReceived
@NotNull public static @NotNull MessageTargetReceivedMessageMatcher hasReceived(@NotNull @NotNull net.kyori.adventure.text.Component expected) - Parameters:
expected- The message required for a match- Returns:
- A matcher which matches with any message target that has received the specified message
-
hasReceived
@NotNull public static @NotNull MessageTargetReceivedMessageMatcher hasReceived(@NotNull @NotNull String expected) - Parameters:
expected- The message required for a match- Returns:
- A matcher which matches with any message target that has received the specified message
-
hasNotReceived
@NotNull public static @NotNull org.hamcrest.Matcher<MessageTarget> hasNotReceived(@NotNull @NotNull String expected) - Parameters:
expected- The message required for a match- Returns:
- A matcher which matches with any message target that has not received the specified message
-