diff --git a/src/test/java/ChatGUITest.java b/src/test/java/ChatGUITest.java index 8d8eaf6..3afb790 100644 --- a/src/test/java/ChatGUITest.java +++ b/src/test/java/ChatGUITest.java @@ -23,6 +23,17 @@ public class ChatGUITest { chatGUI.actionPerformed(new TestActionEvent(chatGUI.blue)); assertEquals(Color.BLUE, chatGUI.outputTextArea.getForeground()); } + @Test + public void testSetOutputTextColorBlack() { + chatGUI.actionPerformed(new TestActionEvent(chatGUI.black)); + assertEquals(Color.BLACK, chatGUI.outputTextArea.getForeground()); + } + + @Test + public void testSetOutputTextColorGreen() { + chatGUI.actionPerformed(new TestActionEvent(chatGUI.green)); + assertEquals(Color.GREEN, chatGUI.outputTextArea.getForeground()); + } }