Browse Source

unittest: Added unittest for the help command

remotes/origin/locations
David Hermann 2 years ago
parent
commit
ffca558531
  1. 15
      src/test/java/org/bitbiome/commands/HelpCommandTest.java

15
src/test/java/org/bitbiome/commands/HelpCommandTest.java

@ -0,0 +1,15 @@
package org.bitbiome.commands;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class HelpCommandTest {
@Test
public void testHelpCommand() {
String helpMessage = HelpCommand.getHelpMessage();
assertEquals("Hier ist eine Liste der Commands:\n- help -> Gibt diese Nachricht aus\n- exit/quit -> Beendet das Spiel\n", helpMessage);
}
}
Loading…
Cancel
Save