From: David ‘Bombe’ Roden Date: Fri, 6 Sep 2024 12:51:15 +0000 (+0200) Subject: 🐛 Only accept matchers for Strings on FCP message field values X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cdfb618c4443dddccdd1deb2f8970726f03bb062;p=jFCPlib.git 🐛 Only accept matchers for Strings on FCP message field values --- diff --git a/src/test/java/net/pterodactylus/fcp/test/Matchers.java b/src/test/java/net/pterodactylus/fcp/test/Matchers.java index 871869f..f3c4897 100644 --- a/src/test/java/net/pterodactylus/fcp/test/Matchers.java +++ b/src/test/java/net/pterodactylus/fcp/test/Matchers.java @@ -81,7 +81,7 @@ public class Matchers { }; } - public static Matcher hasField(String name, Matcher valueMatcher) { + public static Matcher hasField(String name, Matcher valueMatcher) { return new TypeSafeDiagnosingMatcher() { @Override protected boolean matchesSafely(FcpMessage fcpMessage, Description mismatchDescription) {