From ada95c7e03706602cc70455e3300633b29dfa7bf Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 13:34:20 +0100 Subject: [PATCH] unittest: Created test for QuizCommand This test tests the start/welcome message to the quiz --- .../java/org/bitbiome/commands/QuizCommandTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/java/org/bitbiome/commands/QuizCommandTest.java diff --git a/src/test/java/org/bitbiome/commands/QuizCommandTest.java b/src/test/java/org/bitbiome/commands/QuizCommandTest.java new file mode 100644 index 0000000..14b73a7 --- /dev/null +++ b/src/test/java/org/bitbiome/commands/QuizCommandTest.java @@ -0,0 +1,13 @@ +package org.bitbiome.commands; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class QuizCommandTest { + + @Test + public void testStartMessage() { + assertEquals("Du hast das Quiz gestartet! Hinweis: Wähle deine Antwort, indem du die Zahl (1-4) eingibst. Ist deine Lösung richtig, erhälst du 5 Münzen. Viel Erfolg! \n", QuizCommand.starterMessage()); + } +}