mirror of https://github.com/usbharu/Hideout.git
test: テストを修正
This commit is contained in:
parent
f8c54e3d9f
commit
67d284ffcc
|
@ -78,7 +78,8 @@ class APNoteServiceImplTest {
|
||||||
postService = mock(),
|
postService = mock(),
|
||||||
apResourceResolveService = mock(),
|
apResourceResolveService = mock(),
|
||||||
postBuilder = Post.PostBuilder(CharacterLimit()),
|
postBuilder = Post.PostBuilder(CharacterLimit()),
|
||||||
noteQueryService = noteQueryService
|
noteQueryService = noteQueryService,
|
||||||
|
mock()
|
||||||
)
|
)
|
||||||
|
|
||||||
val actual = apNoteServiceImpl.fetchNote(url)
|
val actual = apNoteServiceImpl.fetchNote(url)
|
||||||
|
@ -155,7 +156,8 @@ class APNoteServiceImplTest {
|
||||||
postService = mock(),
|
postService = mock(),
|
||||||
apResourceResolveService = apResourceResolveService,
|
apResourceResolveService = apResourceResolveService,
|
||||||
postBuilder = Post.PostBuilder(CharacterLimit()),
|
postBuilder = Post.PostBuilder(CharacterLimit()),
|
||||||
noteQueryService = noteQueryService
|
noteQueryService = noteQueryService,
|
||||||
|
mock()
|
||||||
)
|
)
|
||||||
|
|
||||||
val actual = apNoteServiceImpl.fetchNote(url)
|
val actual = apNoteServiceImpl.fetchNote(url)
|
||||||
|
@ -223,7 +225,8 @@ class APNoteServiceImplTest {
|
||||||
postService = mock(),
|
postService = mock(),
|
||||||
apResourceResolveService = apResourceResolveService,
|
apResourceResolveService = apResourceResolveService,
|
||||||
postBuilder = Post.PostBuilder(CharacterLimit()),
|
postBuilder = Post.PostBuilder(CharacterLimit()),
|
||||||
noteQueryService = noteQueryService
|
noteQueryService = noteQueryService,
|
||||||
|
mock()
|
||||||
)
|
)
|
||||||
|
|
||||||
assertThrows<FailedToGetActivityPubResourceException> { apNoteServiceImpl.fetchNote(url) }
|
assertThrows<FailedToGetActivityPubResourceException> { apNoteServiceImpl.fetchNote(url) }
|
||||||
|
@ -275,7 +278,8 @@ class APNoteServiceImplTest {
|
||||||
postService = postService,
|
postService = postService,
|
||||||
apResourceResolveService = mock(),
|
apResourceResolveService = mock(),
|
||||||
postBuilder = postBuilder,
|
postBuilder = postBuilder,
|
||||||
noteQueryService = noteQueryService
|
noteQueryService = noteQueryService,
|
||||||
|
mock()
|
||||||
)
|
)
|
||||||
|
|
||||||
val note = Note(
|
val note = Note(
|
||||||
|
@ -333,7 +337,8 @@ class APNoteServiceImplTest {
|
||||||
postService = mock(),
|
postService = mock(),
|
||||||
apResourceResolveService = mock(),
|
apResourceResolveService = mock(),
|
||||||
postBuilder = postBuilder,
|
postBuilder = postBuilder,
|
||||||
noteQueryService = noteQueryService
|
noteQueryService = noteQueryService,
|
||||||
|
mock()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue