-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BE] fix: 발자국 알림 개선 #505
[BE] fix: 발자국 알림 개선 #505
Conversation
Test Results161 tests +158 161 ✅ +158 18s ⏱️ +18s Results for commit 53a8a0d. ± Comparison against base commit 93e3951. This pull request removes 3 and adds 161 tests. Note that renamed tests count towards both.
|
@DisplayName("알림을 받을 디바이스가 존재하지 않으면 알림을 보내지 않습니다.") | ||
@Test | ||
void sendFootprintNotification() throws FirebaseMessagingException { | ||
// when | ||
fcmNotificationService.sendFootprintNotification("title", "content", List.of()); | ||
|
||
// then | ||
verify(firebaseMessaging, never()).sendEachForMulticast(any()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 검증문이 특이하네요 mockito 기능인가요?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
모키토 입니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생했어요.
private final DeviceTokenRepository deviceTokenRepository; | ||
|
||
public FcmNotificationService( | ||
FirebaseApp firebaseApp, | ||
@Autowired FirebaseApp firebaseApp, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 어노테이션 붙여야 하나요? 필드에 없는 값이면 붙여야 하는 건가...?
public void sendFootprintNotification(String title, String content, String receiverToken) { | ||
Map<String, String> data = Map.of( | ||
"body", content | ||
); | ||
|
||
sendNotificationWithType(FOOTPRINT, title, data, List.of(receiverToken)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 제가 만든 메서드 잘 활용해주셨네용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니당~
이슈
개발 사항