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()); + } +}