diff --git a/src/main/java/org/bitbiome/commands/QuitCommand.java b/src/main/java/org/bitbiome/commands/QuitCommand.java index 258ab1a..b84f513 100644 --- a/src/main/java/org/bitbiome/commands/QuitCommand.java +++ b/src/main/java/org/bitbiome/commands/QuitCommand.java @@ -1,5 +1,6 @@ package org.bitbiome.commands; +import org.bitbiome.classes.Colors; import org.bitbiome.classes.TravelEngine; import java.util.Scanner; @@ -17,6 +18,6 @@ public class QuitCommand implements CommandAPI { } public static String getQuitMessage() { - return "You quitted!"; + return Colors.ANSI_BG_GREEN + "Du hast das Spiel beendet! Bis bald." + Colors.ANSI_RESET; } } diff --git a/src/test/java/org/bitbiome/commands/QuitCommandTest.java b/src/test/java/org/bitbiome/commands/QuitCommandTest.java index 67a368e..3dd4eaa 100755 --- a/src/test/java/org/bitbiome/commands/QuitCommandTest.java +++ b/src/test/java/org/bitbiome/commands/QuitCommandTest.java @@ -3,13 +3,14 @@ package org.bitbiome.commands; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; public class QuitCommandTest { @Test public void testQuitCommand() { - assertEquals("You quitted!", QuitCommand.getQuitMessage()); + assertTrue(QuitCommand.getQuitMessage().contains("Spiel beendet!")); } }