From 9b6b6e1291df0842b6e9bddba19390f26cf119f3 Mon Sep 17 00:00:00 2001 From: Paul Kattenborn Date: Fri, 9 Feb 2024 02:48:47 +0100 Subject: [PATCH] =?UTF-8?q?test=5Fweitere=20Testf=C3=A4lle=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/ChatGUITest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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()); + } }