|
|
@ -32,7 +32,23 @@ public class TestEmojiPicker { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
public void testEmojiPickerButtonText() { |
|
|
|
|
|
|
|
|
|
|
|
JTextField textField = new JTextField(); |
|
|
|
|
|
|
|
EmojiPicker emojiPicker = new EmojiPicker(textField); |
|
|
|
|
|
|
|
Component[] components = emojiPicker.getComponents(); |
|
|
|
|
|
|
|
for (Component component : components) { |
|
|
|
assertTrue(component instanceof JButton); |
|
|
|
|
|
|
|
JButton button = (JButton) component; |
|
|
|
assertTrue(button.getText().matches("[\uD83C-\uDBFF\uDC00-\uDFFF]+")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |