Browse Source

test_Emoji3

remotes/origin/client-handler
Valentin Spiroski 11 months ago
parent
commit
27540cba20
  1. 13
      src/test/java/TestEmojiPicker.java

13
src/test/java/TestEmojiPicker.java

@ -97,4 +97,17 @@ public class TestEmojiPicker {
EmojiPicker emojiPicker = new EmojiPicker(textField); EmojiPicker emojiPicker = new EmojiPicker(textField);
assertNotNull(emojiPicker); assertNotNull(emojiPicker);
} }
@Test
public void testEmojiPickerLayout() {
JTextField textField = new JTextField();
EmojiPicker emojiPicker = new EmojiPicker(textField);
LayoutManager layoutManager = emojiPicker.getLayout();
assertTrue(layoutManager instanceof GridLayout);
GridLayout gridLayout = (GridLayout) layoutManager;
assertEquals(4, gridLayout.getRows());
assertEquals(3, gridLayout.getColumns());
}
} }
Loading…
Cancel
Save