From 971ec214b6d3bed0ffd47cf044046f6cb05a7de2 Mon Sep 17 00:00:00 2001 From: Paul Kattenborn <paul.kattenborn@informatik.hs-fulda.de> Date: Fri, 9 Feb 2024 02:47:14 +0100 Subject: [PATCH] test_weiterer Test --- src/test/java/ChatGUITest.java | 6 ++++++ 1 file changed, 6 insertions(+) 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()); + } + }