Browse Source

refactoring:TestEmojiPicker

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

8
src/test/java/TestEmojiPicker.java

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

Loading…
Cancel
Save