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