|
@ -1,22 +1,22 @@ |
|
|
import org.junit.jupiter.api.Test; |
|
|
import org.junit.jupiter.api.Test; |
|
|
import javax.swing.*; |
|
|
import javax.swing.*; |
|
|
|
|
|
|
|
|
import java.awt.*; |
|
|
import java.awt.*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
|
public class TestEmojiPicker { |
|
|
|
|
|
|
|
|
public class TestEmojiPicker { |
|
|
|
|
|
|
|
|
|
|
|
//Test to ensure the EmojiPicker constructor initializes without errors |
|
|
@Test |
|
|
@Test |
|
|
public void testEmojiPickerConstructor() { |
|
|
public void testEmojiPickerConstructor() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Arrange |
|
|
JTextField textField = new JTextField(); |
|
|
JTextField textField = new JTextField(); |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
EmojiPicker emojiPicker = new EmojiPicker(textField); |
|
|
|
|
|
|
|
|
EmojiPicker emojiPicker = new EmojiPicker(textField); |
|
|
|
|
|
|
|
|
|
|
|
assertNotNull(emojiPicker); |
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
assertNotNull(emojiPicker); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
@Test |
|
|
@Test |
|
|