File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/test/java/com/somemore/notification Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
33import com .somemore .IntegrationTestSupport ;
44import com .somemore .notification .domain .Notification ;
5- import com .somemore .notification .domain .NotificationType ;
5+ import com .somemore .notification .domain .NotificationSubType ;
66import org .junit .jupiter .api .BeforeEach ;
77import org .junit .jupiter .api .DisplayName ;
88import 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 ();
Original file line number Diff line number Diff line change 22
33import com .somemore .IntegrationTestSupport ;
44import com .somemore .notification .domain .Notification ;
5- import com .somemore .notification .domain .NotificationType ;
5+ import com .somemore .notification .domain .NotificationSubType ;
66import com .somemore .notification .dto .NotificationResponseDto ;
77import com .somemore .notification .repository .NotificationRepository ;
88import org .junit .jupiter .api .DisplayName ;
1616import 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 ();
You can’t perform that action at this time.
0 commit comments