Skip to content

Commit c38d9d2

Browse files
committed
test(Notification): sub 명시 (클래스 명 변경)
- 테스트 클래스 명 변경
1 parent 7eb97ce commit c38d9d2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/test/java/com/somemore/notification/repository/NotificationRepositoryTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.somemore.IntegrationTestSupport;
44
import com.somemore.notification.domain.Notification;
5-
import com.somemore.notification.domain.NotificationType;
5+
import com.somemore.notification.domain.NotificationSubType;
66
import org.junit.jupiter.api.BeforeEach;
77
import org.junit.jupiter.api.DisplayName;
88
import org.junit.jupiter.api.Test;
@@ -29,14 +29,14 @@ void setup() {
2929
for (int i = 0; i < 10; i++) {
3030
Notification unreadNotification = Notification.builder()
3131
.title("Unread Notification")
32-
.type(NotificationType.NOTE_BLAH_BLAH)
32+
.type(NotificationSubType.NOTE_BLAH_BLAH)
3333
.receiverId(receiverId)
3434
.relatedId(1L)
3535
.build();
3636

3737
Notification readNotification = Notification.builder()
3838
.title("Read Notification")
39-
.type(NotificationType.REVIEW_BLAH_BLAH)
39+
.type(NotificationSubType.REVIEW_BLAH_BLAH)
4040
.receiverId(receiverId)
4141
.relatedId(2L)
4242
.build();

src/test/java/com/somemore/notification/service/NotificationQueryServiceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.somemore.IntegrationTestSupport;
44
import com.somemore.notification.domain.Notification;
5-
import com.somemore.notification.domain.NotificationType;
5+
import com.somemore.notification.domain.NotificationSubType;
66
import com.somemore.notification.dto.NotificationResponseDto;
77
import com.somemore.notification.repository.NotificationRepository;
88
import org.junit.jupiter.api.DisplayName;
@@ -16,7 +16,7 @@
1616
import static org.assertj.core.api.Assertions.assertThat;
1717

1818
@Transactional
19-
class NotificationQueryServiceIntegrationTest extends IntegrationTestSupport {
19+
class NotificationQueryServiceTest extends IntegrationTestSupport {
2020

2121
@Autowired
2222
private NotificationQueryService notificationQueryService;
@@ -32,7 +32,7 @@ void getUnreadNotifications() {
3232

3333
Notification unreadNotification = Notification.builder()
3434
.title("Unread Notification")
35-
.type(NotificationType.NOTE_BLAH_BLAH)
35+
.type(NotificationSubType.NOTE_BLAH_BLAH)
3636
.receiverId(receiverId)
3737
.relatedId(1L)
3838
.build();
@@ -55,7 +55,7 @@ void getReadNotifications() {
5555

5656
Notification readNotification = Notification.builder()
5757
.title("Read Notification")
58-
.type(NotificationType.REVIEW_BLAH_BLAH)
58+
.type(NotificationSubType.REVIEW_BLAH_BLAH)
5959
.receiverId(receiverId)
6060
.relatedId(2L)
6161
.build();

0 commit comments

Comments
 (0)