|
@ -18,5 +18,11 @@ public class ChatGUITest { |
|
|
chatGUI.actionPerformed(new TestActionEvent(chatGUI.red)); |
|
|
chatGUI.actionPerformed(new TestActionEvent(chatGUI.red)); |
|
|
assertEquals(Color.RED, chatGUI.outputTextArea.getForeground()); |
|
|
assertEquals(Color.RED, chatGUI.outputTextArea.getForeground()); |
|
|
} |
|
|
} |
|
|
|
|
|
@Test |
|
|
|
|
|
public void testSetOutputTextColorBlue() { |
|
|
|
|
|
chatGUI.actionPerformed(new TestActionEvent(chatGUI.blue)); |
|
|
|
|
|
assertEquals(Color.BLUE, chatGUI.outputTextArea.getForeground()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|