test: テストを修正

This commit is contained in:
usbharu 2023-11-02 19:58:37 +09:00
parent f8c54e3d9f
commit 67d284ffcc
1 changed files with 10 additions and 5 deletions

View File

@ -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<FailedToGetActivityPubResourceException> { 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()
)