From 0d0efe54b3734e9ba6fe5ad2e8a6a27a2b742bc8 Mon Sep 17 00:00:00 2001 From: Paul Kattenborn Date: Fri, 9 Feb 2024 02:54:36 +0100 Subject: [PATCH] =?UTF-8?q?test=5FSchriftgr=C3=B6=C3=9Fe=20large?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/ChatGUITest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test/java/ChatGUITest.java b/src/test/java/ChatGUITest.java index 94a4fc2..42065b8 100644 --- a/src/test/java/ChatGUITest.java +++ b/src/test/java/ChatGUITest.java @@ -47,6 +47,12 @@ public class ChatGUITest { Font expectedFont = chatGUI.outputTextArea.getFont().deriveFont(Font.PLAIN, 16); assertEquals(expectedFont, chatGUI.outputTextArea.getFont()); } - + @Test + public void testSetOutputTextFontSizeLarge() { + chatGUI.actionPerformed(new TestActionEvent(chatGUI.large)); + Font expectedFont = chatGUI.outputTextArea.getFont().deriveFont(Font.PLAIN, 20); + assertEquals(expectedFont, chatGUI.outputTextArea.getFont()); + } } +