@ -34,7 +34,7 @@ public class ChatGUI implements ActionListener {
JMenuItem exit = new JMenuItem("Exit");
private JButton popupButton;
JButton popupButton;
JTextField inputTextField = new JTextField();
JTextArea outputTextArea = new JTextArea();
@ -92,6 +92,16 @@ public class ChatGUITest {
assertTrue(chatGUI.outputTextArea.getText().contains(expectedMessage));
}
@Test
public void testSendPopupMessage() {
ChatGUI chatGUI = new ChatGUI();
String testMessage = "Test Popup-Nachricht";
chatGUI.sendPopupMessage(testMessage);