diff --git a/src/test/java/TestEmojiPicker.java b/src/test/java/TestEmojiPicker.java index b10964e..59947c3 100644 --- a/src/test/java/TestEmojiPicker.java +++ b/src/test/java/TestEmojiPicker.java @@ -97,4 +97,17 @@ public class TestEmojiPicker { EmojiPicker emojiPicker = new EmojiPicker(textField); 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()); + } + + }