|
|
@ -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()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|