Browse Source

test_medium-font-test

remotes/origin/server
Paul Kattenborn 11 months ago
parent
commit
29de7c748d
  1. 6
      src/test/java/ChatGUITest.java

6
src/test/java/ChatGUITest.java

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