package org.ntlab.tampoposerver.models;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import static org.junit.jupiter.api.Assertions.assertEquals;
@SpringBootTest
public class NotificationTest {
    @Test
    void contextLoads() {
        Notification n1 = new Notification("u01","n01","u100","telephone","2025/6/5");
        Notification n2 = new Notification("u02","n02","u100","telephone","2025/6/5");
        assertEquals("u01", n1.getUserId());
        assertEquals("n01", n1.getNotificationId());
        assertEquals("u100", n1.getFrom());
        assertEquals("telephone", n1.getText());
        assertEquals("2025/6/5", n1.getTime());
        assertEquals("u02", n2.getUserId());
        assertEquals("n02", n2.getNotificationId());
        assertEquals("u100", n2.getFrom());
        assertEquals("telephone", n2.getText());
        assertEquals("2025/6/5", n2.getTime());
    }
}