refactor: 不要な依存を削除

This commit is contained in:
usbharu 2023-10-31 16:35:05 +09:00
parent 1eabe75cd9
commit 85337420cd
2 changed files with 14 additions and 59 deletions

View File

@ -6,9 +6,6 @@ import com.fasterxml.jackson.module.kotlin.readValue
import dev.usbharu.hideout.domain.model.ActivityPubResponse
import dev.usbharu.hideout.domain.model.ap.Follow
import dev.usbharu.hideout.exception.JsonParseException
import dev.usbharu.hideout.service.ap.job.APReceiveFollowJobService
import dev.usbharu.hideout.service.ap.job.ApNoteJobService
import dev.usbharu.hideout.service.ap.job.ApReactionJobService
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Qualifier
@ -178,10 +175,7 @@ class APServiceImpl(
private val apAcceptService: APAcceptService,
private val apCreateService: APCreateService,
private val apLikeService: APLikeService,
@Qualifier("activitypub") private val objectMapper: ObjectMapper,
private val apReceiveFollowJobService: APReceiveFollowJobService,
private val apNoteJobService: ApNoteJobService,
private val apReactionJobService: ApReactionJobService
@Qualifier("activitypub") private val objectMapper: ObjectMapper
) : APService {
val logger: Logger = LoggerFactory.getLogger(APServiceImpl::class.java)

View File

@ -16,10 +16,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -36,10 +33,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -56,10 +50,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -76,10 +67,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -96,10 +84,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -116,10 +101,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -136,10 +118,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -156,10 +135,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -176,10 +152,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -196,10 +169,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -216,10 +186,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -236,10 +203,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON
@ -256,10 +220,7 @@ class APServiceImplTest {
apAcceptService = mock(),
apCreateService = mock(),
apLikeService = mock(),
objectMapper = objectMapper,
apReceiveFollowJobService = mock(),
apNoteJobService = mock(),
apReactionJobService = mock()
objectMapper = objectMapper
)
//language=JSON