From 59a36a66a6c43cf2576c3b93344c164e89b9efa5 Mon Sep 17 00:00:00 2001 From: David Hermann Date: Thu, 5 Jan 2023 21:21:21 +0100 Subject: [PATCH] unittest: Added unit test for the quit/exit command --- .../org/bitbiome/commands/QuitCommandTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/java/org/bitbiome/commands/QuitCommandTest.java diff --git a/src/test/java/org/bitbiome/commands/QuitCommandTest.java b/src/test/java/org/bitbiome/commands/QuitCommandTest.java new file mode 100644 index 0000000..67a368e --- /dev/null +++ b/src/test/java/org/bitbiome/commands/QuitCommandTest.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 QuitCommandTest { + + + @Test + public void testQuitCommand() { + assertEquals("You quitted!", QuitCommand.getQuitMessage()); + } + +}