From 3023256ad96e6065746726ea1380cc38ead151f8 Mon Sep 17 00:00:00 2001 From: Paul Kattenborn Date: Fri, 9 Feb 2024 20:35:52 +0100 Subject: [PATCH] =?UTF-8?q?test=5FtestNoInputEntered=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/ChatGUITest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/java/ChatGUITest.java b/src/test/java/ChatGUITest.java index a2a20c9..1ef4f3f 100644 --- a/src/test/java/ChatGUITest.java +++ b/src/test/java/ChatGUITest.java @@ -107,6 +107,14 @@ public class ChatGUITest { chatGUI.sendPopupMessage(testMessage); } -} + @Test + public void testNoInputEntered() { + + chatGUI.inputTextField.setText(""); + chatGUI.sendButton.doClick(); + + assertEquals("", chatGUI.outputTextArea.getText()); + } +}