Browse Source

test_weitere Testfälle hinzugefügt

remotes/origin/server
Paul Kattenborn 11 months ago
parent
commit
9b6b6e1291
  1. 11
      src/test/java/ChatGUITest.java

11
src/test/java/ChatGUITest.java

@ -23,6 +23,17 @@ public class ChatGUITest {
chatGUI.actionPerformed(new TestActionEvent(chatGUI.blue)); chatGUI.actionPerformed(new TestActionEvent(chatGUI.blue));
assertEquals(Color.BLUE, chatGUI.outputTextArea.getForeground()); 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());
}
} }
Loading…
Cancel
Save