diff --git a/src/test/kotlin/dev/usbharu/hideout/routing/activitypub/UsersAPTest.kt b/src/test/kotlin/dev/usbharu/hideout/routing/activitypub/UsersAPTest.kt index fee20a11..a0d0723e 100644 --- a/src/test/kotlin/dev/usbharu/hideout/routing/activitypub/UsersAPTest.kt +++ b/src/test/kotlin/dev/usbharu/hideout/routing/activitypub/UsersAPTest.kt @@ -1,9 +1,13 @@ package dev.usbharu.hideout.routing.activitypub import dev.usbharu.hideout.domain.model.ActivityPubResponse +import dev.usbharu.hideout.domain.model.User +import dev.usbharu.hideout.domain.model.UserEntity import dev.usbharu.hideout.plugins.configureRouting +import dev.usbharu.hideout.repository.IUserRepository import dev.usbharu.hideout.service.activitypub.ActivityPubService import dev.usbharu.hideout.service.activitypub.ActivityType +import dev.usbharu.hideout.service.impl.UserService import dev.usbharu.hideout.service.signature.HttpSignatureVerifyService import dev.usbharu.hideout.util.HttpUtil.Activity import io.ktor.client.request.* @@ -34,7 +38,47 @@ class UsersAPTest { override fun processActivity(json: String, type: ActivityType): ActivityPubResponse? { TODO("Not yet implemented") } - }) + },UserService(object : IUserRepository { + override suspend fun create(user: User): UserEntity { + TODO("Not yet implemented") + } + + override suspend fun findById(id: Long): UserEntity? { + TODO("Not yet implemented") + } + + override suspend fun findByName(name: String): UserEntity? { + TODO("Not yet implemented") + } + + override suspend fun update(userEntity: UserEntity) { + TODO("Not yet implemented") + } + + override suspend fun delete(id: Long) { + TODO("Not yet implemented") + } + + override suspend fun findAll(): List { + TODO("Not yet implemented") + } + + override suspend fun findAllByLimitAndByOffset(limit: Int, offset: Long): List { + TODO("Not yet implemented") + } + + override suspend fun createFollower(id: Long, follower: Long) { + TODO("Not yet implemented") + } + + override suspend fun deleteFollower(id: Long, follower: Long) { + TODO("Not yet implemented") + } + + override suspend fun findFollowersById(id: Long): List { + TODO("Not yet implemented") + } + })) } client.get("/users/test"){ accept(ContentType.Application.Activity)