From 27540cba2036246de3a87157d7e2bf794583a20a Mon Sep 17 00:00:00 2001 From: Valentin Spiroski Date: Fri, 9 Feb 2024 23:50:13 +0100 Subject: [PATCH] test_Emoji3 --- src/test/java/TestEmojiPicker.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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()); + } + + }