From 29de7c748dfa1cf53dc07a4479187e130059da49 Mon Sep 17 00:00:00 2001 From: Paul Kattenborn Date: Fri, 9 Feb 2024 02:51:14 +0100 Subject: [PATCH] test_medium-font-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 8b06bf4..94a4fc2 100644 --- a/src/test/java/ChatGUITest.java +++ b/src/test/java/ChatGUITest.java @@ -41,6 +41,12 @@ public class ChatGUITest { Font expectedFont = chatGUI.outputTextArea.getFont().deriveFont(Font.PLAIN, 12); assertEquals(expectedFont, chatGUI.outputTextArea.getFont()); } + @Test + public void testSetOutputTextFontSizeMedium() { + chatGUI.actionPerformed(new TestActionEvent(chatGUI.medium)); + Font expectedFont = chatGUI.outputTextArea.getFont().deriveFont(Font.PLAIN, 16); + assertEquals(expectedFont, chatGUI.outputTextArea.getFont()); + } }