From 566f9797f703832e32032ba8aa6843b160d2a6af Mon Sep 17 00:00:00 2001 From: fdai7430 Date: Sat, 4 Feb 2023 18:16:38 +0100 Subject: [PATCH] unittest: Added test for RunAwayCommand.java --- .../org/bitbiome/commands/RunAwayCommandTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/test/java/org/bitbiome/commands/RunAwayCommandTest.java diff --git a/src/test/java/org/bitbiome/commands/RunAwayCommandTest.java b/src/test/java/org/bitbiome/commands/RunAwayCommandTest.java new file mode 100644 index 0000000..ab516b1 --- /dev/null +++ b/src/test/java/org/bitbiome/commands/RunAwayCommandTest.java @@ -0,0 +1,12 @@ +package org.bitbiome.commands; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import org.junit.jupiter.api.Test; + +public class RunAwayCommandTest { + @Test + public void testRunAwayCommand() { + assertEquals("You can only run away when you're fighting someone.", new RunAwayCommand().getRunAwayMessage()); + } +}