Skip to content

Commit 32327fd

Browse files
committed
Test: SYSTEM 알림에 대한 불필요한 테스트 stub 제거
1 parent 4d18f75 commit 32327fd

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/test/java/com/back/domain/notification/service/NotificationServiceTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import static org.mockito.ArgumentMatchers.*;
3131
import static org.mockito.BDDMockito.*;
3232
import static org.mockito.Mockito.never;
33-
import static org.mockito.Mockito.times;
3433
import static org.mockito.Mockito.verify;
3534

3635
import java.util.List;
@@ -98,8 +97,6 @@ void t1() {
9897
// given
9998
given(notificationRepository.save(any(Notification.class)))
10099
.willReturn(notification);
101-
given(notificationSettingService.isNotificationEnabled(user.getId(), NotificationSettingType.SYSTEM))
102-
.willReturn(true);
103100

104101
// when
105102
Notification result = notificationService.createPersonalNotification(
@@ -114,7 +111,6 @@ void t1() {
114111
assertThat(result.getActor()).isEqualTo(actor);
115112

116113
verify(notificationRepository).save(any(Notification.class));
117-
verify(notificationSettingService).isNotificationEnabled(user.getId(), NotificationSettingType.SYSTEM);
118114
verify(webSocketService).sendNotificationToUser(
119115
eq(user.getId()),
120116
any(NotificationWebSocketDto.class)
@@ -273,8 +269,6 @@ void t8() {
273269
// given
274270
given(notificationRepository.save(any(Notification.class)))
275271
.willReturn(notification);
276-
given(notificationSettingService.isNotificationEnabled(user.getId(), NotificationSettingType.SYSTEM))
277-
.willReturn(true);
278272

279273
// when
280274
Notification result = notificationService.createSelfNotification(
@@ -285,7 +279,6 @@ void t8() {
285279
// then
286280
assertThat(result).isNotNull();
287281
verify(notificationRepository).save(any(Notification.class));
288-
verify(notificationSettingService).isNotificationEnabled(user.getId(), NotificationSettingType.SYSTEM);
289282
verify(webSocketService).sendNotificationToUser(
290283
eq(user.getId()),
291284
any(NotificationWebSocketDto.class)

0 commit comments

Comments
 (0)