From c9a7cdf002c2d4dad766afda670b060e42c00b4e Mon Sep 17 00:00:00 2001 From: Valentin Spiroski Date: Fri, 9 Feb 2024 23:49:57 +0100 Subject: [PATCH] test_Emoji2 --- src/test/java/TestEmojiPicker.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/java/TestEmojiPicker.java b/src/test/java/TestEmojiPicker.java index 1279081..b10964e 100644 --- a/src/test/java/TestEmojiPicker.java +++ b/src/test/java/TestEmojiPicker.java @@ -90,4 +90,11 @@ public class TestEmojiPicker { assertEquals(expectedText, textField.getText(), "Failed for emoji: " + button.getText()); // Check if emoji is appended to the text field } } + + @Test + public void testEmojiPickerNotNull() { + JTextField textField = new JTextField(); + EmojiPicker emojiPicker = new EmojiPicker(textField); + assertNotNull(emojiPicker); + } }