mirror of https://github.com/usbharu/Hideout.git
refactor: 不要な依存を削除
This commit is contained in:
parent
1eabe75cd9
commit
85337420cd
|
@ -6,9 +6,6 @@ import com.fasterxml.jackson.module.kotlin.readValue
|
||||||
import dev.usbharu.hideout.domain.model.ActivityPubResponse
|
import dev.usbharu.hideout.domain.model.ActivityPubResponse
|
||||||
import dev.usbharu.hideout.domain.model.ap.Follow
|
import dev.usbharu.hideout.domain.model.ap.Follow
|
||||||
import dev.usbharu.hideout.exception.JsonParseException
|
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.Logger
|
||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
import org.springframework.beans.factory.annotation.Qualifier
|
import org.springframework.beans.factory.annotation.Qualifier
|
||||||
|
@ -178,10 +175,7 @@ class APServiceImpl(
|
||||||
private val apAcceptService: APAcceptService,
|
private val apAcceptService: APAcceptService,
|
||||||
private val apCreateService: APCreateService,
|
private val apCreateService: APCreateService,
|
||||||
private val apLikeService: APLikeService,
|
private val apLikeService: APLikeService,
|
||||||
@Qualifier("activitypub") private val objectMapper: ObjectMapper,
|
@Qualifier("activitypub") private val objectMapper: ObjectMapper
|
||||||
private val apReceiveFollowJobService: APReceiveFollowJobService,
|
|
||||||
private val apNoteJobService: ApNoteJobService,
|
|
||||||
private val apReactionJobService: ApReactionJobService
|
|
||||||
) : APService {
|
) : APService {
|
||||||
|
|
||||||
val logger: Logger = LoggerFactory.getLogger(APServiceImpl::class.java)
|
val logger: Logger = LoggerFactory.getLogger(APServiceImpl::class.java)
|
||||||
|
|
|
@ -16,10 +16,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -36,10 +33,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -56,10 +50,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -76,10 +67,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -96,10 +84,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -116,10 +101,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -136,10 +118,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -156,10 +135,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -176,10 +152,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -196,10 +169,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -216,10 +186,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -236,10 +203,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
@ -256,10 +220,7 @@ class APServiceImplTest {
|
||||||
apAcceptService = mock(),
|
apAcceptService = mock(),
|
||||||
apCreateService = mock(),
|
apCreateService = mock(),
|
||||||
apLikeService = mock(),
|
apLikeService = mock(),
|
||||||
objectMapper = objectMapper,
|
objectMapper = objectMapper
|
||||||
apReceiveFollowJobService = mock(),
|
|
||||||
apNoteJobService = mock(),
|
|
||||||
apReactionJobService = mock()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
|
|
Loading…
Reference in New Issue