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