test: RelationshipNotificationManagementServiceImplのテストを追加

This commit is contained in:
usbharu 2024-01-28 17:17:38 +09:00
parent 234a9f4d7b
commit 5b1f9353b4
1 changed files with 25 additions and 0 deletions

View File

@ -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)
}
}