3030import static org .mockito .ArgumentMatchers .*;
3131import static org .mockito .BDDMockito .*;
3232import static org .mockito .Mockito .never ;
33- import static org .mockito .Mockito .times ;
3433import static org .mockito .Mockito .verify ;
3534
3635import 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