From d949591ab6cc54f94a2fff2c4159807af8073d58 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sun, 28 Jan 2024 17:17:38 +0900 Subject: [PATCH] =?UTF-8?q?test:=20RelationshipNotificationManagementServi?= =?UTF-8?q?ceImpl=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ipNotificationManagementServiceImplTest.kt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/test/kotlin/dev/usbharu/hideout/core/service/notification/RelationshipNotificationManagementServiceImplTest.kt diff --git a/src/test/kotlin/dev/usbharu/hideout/core/service/notification/RelationshipNotificationManagementServiceImplTest.kt b/src/test/kotlin/dev/usbharu/hideout/core/service/notification/RelationshipNotificationManagementServiceImplTest.kt new file mode 100644 index 00000000..0293920a --- /dev/null +++ b/src/test/kotlin/dev/usbharu/hideout/core/service/notification/RelationshipNotificationManagementServiceImplTest.kt @@ -0,0 +1,25 @@ +package dev.usbharu.hideout.core.service.notification + +import dev.usbharu.hideout.core.domain.model.relationship.Relationship +import org.junit.jupiter.api.Test +import kotlin.test.assertTrue + +class RelationshipNotificationManagementServiceImplTest { + @Test + fun `sendNotification ミューとしていない場合送信する`() { + val notification = RelationshipNotificationManagementServiceImpl().sendNotification( + Relationship( + 1, + 2, + false, + false, + false, + false, + false + ), PostNotificationRequest(1, 2, 3) + ) + + assertTrue(notification) + + } +}