From: David ‘Bombe’ Roden Date: Mon, 6 Jan 2025 10:40:09 +0000 (+0100) Subject: ✅ Add test for Shutdown message X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=38943c690e2351e5893d9effa231bd35b46c486e;p=jFCPlib.git ✅ Add test for Shutdown message --- diff --git a/src/test/java/net/pterodactylus/fcp/ShutdownTest.java b/src/test/java/net/pterodactylus/fcp/ShutdownTest.java new file mode 100644 index 0000000..741435d --- /dev/null +++ b/src/test/java/net/pterodactylus/fcp/ShutdownTest.java @@ -0,0 +1,23 @@ +package net.pterodactylus.fcp; + +import org.junit.Test; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.anEmptyMap; +import static org.hamcrest.Matchers.equalTo; + +public class ShutdownTest { + + @Test + public void shutdownMessageHasCorrectName() { + assertThat(shutdown.getName(), equalTo("Shutdown")); + } + + @Test + public void shutdownMessageHasNoFields() { + assertThat(shutdown.getFields(), anEmptyMap()); + } + + private final Shutdown shutdown = new Shutdown(); + +}