Browse Source

test_Schriftgröße large

remotes/origin/server
Paul Kattenborn 11 months ago
parent
commit
0d0efe54b3
  1. 8
      src/test/java/ChatGUITest.java

8
src/test/java/ChatGUITest.java

@ -47,6 +47,12 @@ public class ChatGUITest {
Font expectedFont = chatGUI.outputTextArea.getFont().deriveFont(Font.PLAIN, 16); Font expectedFont = chatGUI.outputTextArea.getFont().deriveFont(Font.PLAIN, 16);
assertEquals(expectedFont, chatGUI.outputTextArea.getFont()); 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());
} }
}
Loading…
Cancel
Save