test: テストを修正

This commit is contained in:
usbharu 2023-09-30 11:14:30 +09:00
parent 577f9fbfe0
commit bbdfb59bb0
1 changed files with 11 additions and 9 deletions

View File

@ -80,15 +80,16 @@ class APNoteServiceImplTest {
val jobQueueParentService = mock<JobQueueParentService>() val jobQueueParentService = mock<JobQueueParentService>()
val activityPubNoteService = val activityPubNoteService =
APNoteServiceImpl( APNoteServiceImpl(
mock(), httpClient = mock(),
jobQueueParentService, jobQueueParentService = jobQueueParentService,
mock(), postRepository = mock(),
mock(), apUserService = mock(),
userQueryService, userQueryService = userQueryService,
followerQueryService, followerQueryService = followerQueryService,
mock(), postQueryService = mock(),
objectMapper = objectMapper, objectMapper = objectMapper,
applicationConfig = testApplicationConfig applicationConfig = testApplicationConfig,
postService = mock()
) )
val postEntity = Post.of( val postEntity = Post.of(
1L, 1L,
@ -121,7 +122,8 @@ class APNoteServiceImplTest {
followerQueryService = mock(), followerQueryService = mock(),
postQueryService = mock(), postQueryService = mock(),
objectMapper = objectMapper, objectMapper = objectMapper,
applicationConfig = testApplicationConfig applicationConfig = testApplicationConfig,
postService = mock()
) )
activityPubNoteService.createNoteJob( activityPubNoteService.createNoteJob(
JobProps( JobProps(