Browse Source

Unittest: added Goldcommand

remotes/origin/map
Tanja Herche 2 years ago
parent
commit
32b3a5ecfb
  1. 2
      src/main/java/org/bitbiome/commands/HelpCommand.java
  2. 2
      src/test/java/org/bitbiome/commands/HelpCommandTest.java

2
src/main/java/org/bitbiome/commands/HelpCommand.java

@ -30,6 +30,8 @@ public class HelpCommand implements CommandAPI {
.append("|" + Colors.ANSI_GREEN + " location" + Colors.ANSI_RESET + " | Gibt deine Location aus |\n") .append("|" + Colors.ANSI_GREEN + " location" + Colors.ANSI_RESET + " | Gibt deine Location aus |\n")
.append("|--------------|-----------------------------|\n") .append("|--------------|-----------------------------|\n")
.append("|" + Colors.ANSI_GREEN + " map" + Colors.ANSI_RESET + " | Zeigt dir deinen Karte |\n") .append("|" + Colors.ANSI_GREEN + " map" + Colors.ANSI_RESET + " | Zeigt dir deinen Karte |\n")
.append("|--------------|-----------------------------|\n")
.append("|" + Colors.ANSI_GREEN + " gold" + Colors.ANSI_RESET + " | Gibt dein Gold an |\n")
.append("|______________|_____________________________|\n"); .append("|______________|_____________________________|\n");
return outputMessage.toString(); return outputMessage.toString();

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

@ -24,6 +24,8 @@ public class HelpCommandTest {
.append("|" + Colors.ANSI_GREEN + " location" + Colors.ANSI_RESET + " | Gibt deine Location aus |\n") .append("|" + Colors.ANSI_GREEN + " location" + Colors.ANSI_RESET + " | Gibt deine Location aus |\n")
.append("|--------------|-----------------------------|\n") .append("|--------------|-----------------------------|\n")
.append("|" + Colors.ANSI_GREEN + " map" + Colors.ANSI_RESET + " | Zeigt dir deinen Karte |\n") .append("|" + Colors.ANSI_GREEN + " map" + Colors.ANSI_RESET + " | Zeigt dir deinen Karte |\n")
.append("|--------------|-----------------------------|\n")
.append("|" + Colors.ANSI_GREEN + " gold" + Colors.ANSI_RESET + " | Gibt dein Gold an |\n")
.append("|______________|_____________________________|\n"); .append("|______________|_____________________________|\n");
assertEquals(outputMessage.toString(), helpMessage); assertEquals(outputMessage.toString(), helpMessage);
} }

Loading…
Cancel
Save