diff --git a/src/test/java/ChatGUITest.java b/src/test/java/ChatGUITest.java index ab84b47..8d8eaf6 100644 --- a/src/test/java/ChatGUITest.java +++ b/src/test/java/ChatGUITest.java @@ -18,5 +18,11 @@ public class ChatGUITest { chatGUI.actionPerformed(new TestActionEvent(chatGUI.red)); assertEquals(Color.RED, chatGUI.outputTextArea.getForeground()); } + @Test + public void testSetOutputTextColorBlue() { + chatGUI.actionPerformed(new TestActionEvent(chatGUI.blue)); + assertEquals(Color.BLUE, chatGUI.outputTextArea.getForeground()); + } + }