From: David ‘Bombe’ Roden Date: Mon, 6 Jan 2025 10:54:42 +0000 (+0100) Subject: ✅ Add test for WatchFeeds X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=eb0ce47d6d8f2517ef574a6652c02c1389a698db;p=jFCPlib.git ✅ Add test for WatchFeeds --- diff --git a/src/test/java/net/pterodactylus/fcp/WatchFeedsTest.java b/src/test/java/net/pterodactylus/fcp/WatchFeedsTest.java index 09819ef..5482d73 100644 --- a/src/test/java/net/pterodactylus/fcp/WatchFeedsTest.java +++ b/src/test/java/net/pterodactylus/fcp/WatchFeedsTest.java @@ -4,6 +4,7 @@ import org.junit.Test; import static net.pterodactylus.fcp.test.Matchers.isMessage; import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.equalTo; /** * Unit test for {@link WatchFeeds}. @@ -13,6 +14,10 @@ import static org.hamcrest.MatcherAssert.assertThat; public class WatchFeedsTest { @Test + public void watchFeedsMessageHasCorrectName() { + assertThat(watchFeeds.getName(), equalTo("WatchFeeds")); + } + public void enablingWatchFeedsSendsCorrectOutput() throws Exception { WatchFeeds watchFeeds = new WatchFeeds(true); assertThat(watchFeeds, isMessage("WatchFeeds", "Enabled=true"));