Browse Source

test_testEmojiPickerButtonText

remotes/origin/client-handler
Valentin Spiroski 11 months ago
parent
commit
11b24c1257
  1. 16
      src/test/java/TestEmojiPicker.java

16
src/test/java/TestEmojiPicker.java

@ -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]+"));
}
}
}
Loading…
Cancel
Save