From 67d284ffcc3c5fa50781c5143eb386005f2cac36 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:58:37 +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 --- .../service/objects/note/APNoteServiceImplTest.kt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/test/kotlin/dev/usbharu/hideout/activitypub/service/objects/note/APNoteServiceImplTest.kt b/src/test/kotlin/dev/usbharu/hideout/activitypub/service/objects/note/APNoteServiceImplTest.kt index 5c0d6363..c7e047ed 100644 --- a/src/test/kotlin/dev/usbharu/hideout/activitypub/service/objects/note/APNoteServiceImplTest.kt +++ b/src/test/kotlin/dev/usbharu/hideout/activitypub/service/objects/note/APNoteServiceImplTest.kt @@ -78,7 +78,8 @@ class APNoteServiceImplTest { postService = mock(), apResourceResolveService = mock(), postBuilder = Post.PostBuilder(CharacterLimit()), - noteQueryService = noteQueryService + noteQueryService = noteQueryService, + mock() ) val actual = apNoteServiceImpl.fetchNote(url) @@ -155,7 +156,8 @@ class APNoteServiceImplTest { postService = mock(), apResourceResolveService = apResourceResolveService, postBuilder = Post.PostBuilder(CharacterLimit()), - noteQueryService = noteQueryService + noteQueryService = noteQueryService, + mock() ) val actual = apNoteServiceImpl.fetchNote(url) @@ -223,7 +225,8 @@ class APNoteServiceImplTest { postService = mock(), apResourceResolveService = apResourceResolveService, postBuilder = Post.PostBuilder(CharacterLimit()), - noteQueryService = noteQueryService + noteQueryService = noteQueryService, + mock() ) assertThrows { apNoteServiceImpl.fetchNote(url) } @@ -275,7 +278,8 @@ class APNoteServiceImplTest { postService = postService, apResourceResolveService = mock(), postBuilder = postBuilder, - noteQueryService = noteQueryService + noteQueryService = noteQueryService, + mock() ) val note = Note( @@ -333,7 +337,8 @@ class APNoteServiceImplTest { postService = mock(), apResourceResolveService = mock(), postBuilder = postBuilder, - noteQueryService = noteQueryService + noteQueryService = noteQueryService, + mock() )