mirror of https://github.com/usbharu/Hideout.git
test: RelationshipNotificationManagementServiceImplのテストを追加
This commit is contained in:
parent
234a9f4d7b
commit
5b1f9353b4
|
@ -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)
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue