From fc051d20618a5ebc63c69a07d3b830ca397aca03 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Mon, 10 Apr 2023 00:40:58 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=E3=83=86=E3=82=B9=E3=83=88=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dev/usbharu/hideout/plugins/ActivityPubKtTest.kt | 6 +++++- .../kotlin/dev/usbharu/hideout/plugins/KtorKeyMapTest.kt | 6 +++++- .../usbharu/hideout/routing/activitypub/UsersAPTest.kt | 8 ++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/test/kotlin/dev/usbharu/hideout/plugins/ActivityPubKtTest.kt b/src/test/kotlin/dev/usbharu/hideout/plugins/ActivityPubKtTest.kt index 36cefbbd..8cadb063 100644 --- a/src/test/kotlin/dev/usbharu/hideout/plugins/ActivityPubKtTest.kt +++ b/src/test/kotlin/dev/usbharu/hideout/plugins/ActivityPubKtTest.kt @@ -32,7 +32,11 @@ class ActivityPubKtTest { } override suspend fun findByName(name: String): UserEntity? { - return UserEntity(1, "test", "localhost", "test", "") + return UserEntity(1, "test", "localhost", "test", "","","","") + } + + override suspend fun findByUrl(url: String): UserEntity? { + TODO("Not yet implemented") } override suspend fun update(userEntity: UserEntity) { diff --git a/src/test/kotlin/dev/usbharu/hideout/plugins/KtorKeyMapTest.kt b/src/test/kotlin/dev/usbharu/hideout/plugins/KtorKeyMapTest.kt index 3f56dd92..7e87a802 100644 --- a/src/test/kotlin/dev/usbharu/hideout/plugins/KtorKeyMapTest.kt +++ b/src/test/kotlin/dev/usbharu/hideout/plugins/KtorKeyMapTest.kt @@ -27,7 +27,11 @@ class KtorKeyMapTest { } override suspend fun findByName(name: String): UserEntity? { - return UserEntity(1, "test", "localhost", "test", "") + return UserEntity(1, "test", "localhost", "test", "","","","") + } + + override suspend fun findByUrl(url: String): UserEntity? { + TODO("Not yet implemented") } override suspend fun update(userEntity: UserEntity) { 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 1aa2f7d8..fe8877d6 100644 --- a/src/test/kotlin/dev/usbharu/hideout/routing/activitypub/UsersAPTest.kt +++ b/src/test/kotlin/dev/usbharu/hideout/routing/activitypub/UsersAPTest.kt @@ -90,6 +90,10 @@ class UsersAPTest { TODO("Not yet implemented") } + override suspend fun findByUrl(url: String): UserEntity? { + TODO("Not yet implemented") + } + override suspend fun update(userEntity: UserEntity) { TODO("Not yet implemented") } @@ -122,6 +126,10 @@ class UsersAPTest { return person } + override suspend fun fetchPerson(url: String): Person { + TODO("Not yet implemented") + } + }) } client.get("/users/test") {