mirror of https://github.com/usbharu/Hideout.git
test: テストのパッケージを修正
This commit is contained in:
parent
820a688ae6
commit
3e6f657cb4
|
@ -1,7 +1,5 @@
|
|||
package dev.usbharu.hideout.domain.model.ap
|
||||
package dev.usbharu.hideout.activitypub.domain.model
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Follow
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Undo
|
||||
import org.intellij.lang.annotations.Language
|
||||
import org.junit.jupiter.api.Test
|
||||
import utils.JsonObjectMapper
|
|
@ -1,11 +1,10 @@
|
|||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.activity.accept
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.exception.IllegalActivityPubObjectException
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Accept
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Follow
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Like
|
||||
import dev.usbharu.hideout.activitypub.interfaces.api.common.ActivityPubStringResponse
|
||||
import dev.usbharu.hideout.activitypub.service.activity.accept.APAcceptServiceImpl
|
||||
import dev.usbharu.hideout.core.query.FollowerQueryService
|
||||
import dev.usbharu.hideout.core.query.UserQueryService
|
||||
import dev.usbharu.hideout.core.service.user.UserService
|
|
@ -1,11 +1,10 @@
|
|||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.activity.create
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.exception.IllegalActivityPubObjectException
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Create
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Like
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Note
|
||||
import dev.usbharu.hideout.activitypub.interfaces.api.common.ActivityPubStringResponse
|
||||
import dev.usbharu.hideout.activitypub.service.activity.create.APCreateServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.note.APNoteService
|
||||
import io.ktor.http.*
|
||||
import kotlinx.coroutines.test.runTest
|
|
@ -1,14 +1,12 @@
|
|||
@file:OptIn(ExperimentalCoroutinesApi::class)
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.activity.follow
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Follow
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Image
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Key
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Person
|
||||
import dev.usbharu.hideout.activitypub.service.activity.follow.APReceiveFollowJobServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.activity.follow.APReceiveFollowServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.user.APUserService
|
||||
import dev.usbharu.hideout.application.config.ApplicationConfig
|
||||
import dev.usbharu.hideout.application.config.CharacterLimit
|
|
@ -1,7 +1,6 @@
|
|||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.activity.follow
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Follow
|
||||
import dev.usbharu.hideout.activitypub.service.activity.follow.APSendFollowServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.common.APRequestService
|
||||
import dev.usbharu.hideout.core.service.follow.SendFollowDto
|
||||
import kotlinx.coroutines.test.runTest
|
|
@ -1,11 +1,10 @@
|
|||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.activity.like
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.exception.FailedToGetActivityPubResourceException
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Like
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Note
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Person
|
||||
import dev.usbharu.hideout.activitypub.interfaces.api.common.ActivityPubStringResponse
|
||||
import dev.usbharu.hideout.activitypub.service.activity.like.APLikeServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.note.APNoteService
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.user.APUserService
|
||||
import dev.usbharu.hideout.core.query.PostQueryService
|
|
@ -1,7 +1,6 @@
|
|||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.activity.like
|
||||
|
||||
|
||||
import dev.usbharu.hideout.activitypub.service.activity.like.APReactionServiceImpl
|
||||
import dev.usbharu.hideout.application.service.id.TwitterSnowflakeIdGenerateService
|
||||
import dev.usbharu.hideout.core.domain.model.reaction.Reaction
|
||||
import dev.usbharu.hideout.core.external.job.DeliverReactionJob
|
|
@ -1,10 +1,9 @@
|
|||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package dev.usbharu.hideout.service.ap.job
|
||||
package dev.usbharu.hideout.activitypub.service.activity.like
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Like
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Undo
|
||||
import dev.usbharu.hideout.activitypub.service.activity.like.ApReactionJobServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.common.APRequestService
|
||||
import dev.usbharu.hideout.application.config.ApplicationConfig
|
||||
import dev.usbharu.hideout.core.external.job.DeliverReactionJob
|
|
@ -1,9 +1,8 @@
|
|||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.activity.undo
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Follow
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Undo
|
||||
import dev.usbharu.hideout.activitypub.interfaces.api.common.ActivityPubStringResponse
|
||||
import dev.usbharu.hideout.activitypub.service.activity.undo.APUndoServiceImpl
|
||||
import dev.usbharu.hideout.core.query.UserQueryService
|
||||
import io.ktor.http.*
|
||||
import kotlinx.coroutines.test.runTest
|
|
@ -1,8 +1,7 @@
|
|||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.common
|
||||
|
||||
import com.fasterxml.jackson.module.kotlin.readValue
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Follow
|
||||
import dev.usbharu.hideout.activitypub.service.common.APRequestServiceImpl
|
||||
import dev.usbharu.hideout.util.Base64Util
|
||||
import dev.usbharu.httpsignature.common.HttpHeaders
|
||||
import dev.usbharu.httpsignature.common.HttpMethod
|
|
@ -1,13 +1,5 @@
|
|||
package dev.usbharu.hideout.service.ap.resource
|
||||
package dev.usbharu.hideout.activitypub.service.common
|
||||
|
||||
import dev.usbharu.hideout.activitypub.service.common.APRequestService
|
||||
import dev.usbharu.hideout.activitypub.service.common.APResourceResolveServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.common.InMemoryCacheManager
|
||||
import dev.usbharu.hideout.activitypub.service.common.resolve
|
||||
import dev.usbharu.hideout.application.config.ApplicationConfig
|
||||
import dev.usbharu.hideout.application.config.CharacterLimit
|
||||
import dev.usbharu.hideout.core.domain.model.post.Post
|
||||
import dev.usbharu.hideout.core.domain.model.user.User
|
||||
import dev.usbharu.hideout.core.domain.model.user.UserRepository
|
||||
import kotlinx.coroutines.async
|
||||
import kotlinx.coroutines.awaitAll
|
||||
|
@ -17,7 +9,6 @@ import org.junit.jupiter.api.extension.ExtendWith
|
|||
import org.mockito.junit.jupiter.MockitoExtension
|
||||
import org.mockito.kotlin.*
|
||||
import utils.UserBuilder
|
||||
import java.net.URL
|
||||
import dev.usbharu.hideout.activitypub.domain.model.`object`.Object as APObject
|
||||
|
||||
@ExtendWith(MockitoExtension::class)
|
|
@ -1,8 +1,6 @@
|
|||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.common
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.exception.JsonParseException
|
||||
import dev.usbharu.hideout.activitypub.service.common.APServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.common.ActivityType
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.assertThrows
|
||||
import org.mockito.kotlin.mock
|
|
@ -1,6 +1,6 @@
|
|||
@file:OptIn(ExperimentalCoroutinesApi::class) @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package dev.usbharu.hideout.service.ap
|
||||
package dev.usbharu.hideout.activitypub.service.`object`.note
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.exception.FailedToGetActivityPubResourceException
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Image
|
||||
|
@ -8,9 +8,7 @@ import dev.usbharu.hideout.activitypub.domain.model.Key
|
|||
import dev.usbharu.hideout.activitypub.domain.model.Note
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Person
|
||||
import dev.usbharu.hideout.activitypub.service.common.APResourceResolveService
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.note.APNoteServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.note.APNoteServiceImpl.Companion.public
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.note.ApNoteJobServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.user.APUserService
|
||||
import dev.usbharu.hideout.application.config.ApplicationConfig
|
||||
import dev.usbharu.hideout.application.config.CharacterLimit
|
||||
|
@ -37,12 +35,10 @@ import io.ktor.http.*
|
|||
import io.ktor.http.content.*
|
||||
import io.ktor.util.*
|
||||
import io.ktor.util.date.*
|
||||
import kjob.core.job.JobProps
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import kotlinx.serialization.json.Json
|
||||
import org.junit.jupiter.api.Assertions.assertEquals
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.assertThrows
|
||||
|
@ -50,7 +46,6 @@ import org.mockito.Mockito.anyLong
|
|||
import org.mockito.kotlin.*
|
||||
import utils.JsonObjectMapper.objectMapper
|
||||
import utils.PostBuilder
|
||||
import utils.TestTransaction
|
||||
import utils.UserBuilder
|
||||
import java.net.URL
|
||||
import java.time.Instant
|
|
@ -1,12 +1,10 @@
|
|||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package dev.usbharu.hideout.service.ap.job
|
||||
package dev.usbharu.hideout.activitypub.service.`object`.note
|
||||
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Create
|
||||
import dev.usbharu.hideout.activitypub.domain.model.Note
|
||||
import dev.usbharu.hideout.activitypub.service.common.APRequestService
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.note.APNoteServiceImpl
|
||||
import dev.usbharu.hideout.activitypub.service.`object`.note.ApNoteJobServiceImpl
|
||||
import dev.usbharu.hideout.application.config.ApplicationConfig
|
||||
import dev.usbharu.hideout.core.external.job.DeliverPostJob
|
||||
import dev.usbharu.hideout.core.query.UserQueryService
|
|
@ -1,7 +1,6 @@
|
|||
package dev.usbharu.hideout.service.core
|
||||
package dev.usbharu.hideout.application.service.id
|
||||
|
||||
// import kotlinx.coroutines.NonCancellable.message
|
||||
import dev.usbharu.hideout.application.service.id.TwitterSnowflakeIdGenerateService
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.coroutineScope
|
||||
import kotlinx.coroutines.launch
|
|
@ -1,8 +1,7 @@
|
|||
@file:OptIn(ExperimentalCoroutinesApi::class)
|
||||
|
||||
package dev.usbharu.hideout.service.core
|
||||
package dev.usbharu.hideout.application.service.init
|
||||
|
||||
import dev.usbharu.hideout.application.service.init.MetaServiceImpl
|
||||
import dev.usbharu.hideout.core.domain.exception.NotInitException
|
||||
import dev.usbharu.hideout.core.domain.model.meta.Jwt
|
||||
import dev.usbharu.hideout.core.domain.model.meta.Meta
|
|
@ -1,8 +1,7 @@
|
|||
@file:OptIn(ExperimentalCoroutinesApi::class)
|
||||
|
||||
package dev.usbharu.hideout.service.core
|
||||
package dev.usbharu.hideout.application.service.init
|
||||
|
||||
import dev.usbharu.hideout.application.service.init.ServerInitialiseServiceImpl
|
||||
import dev.usbharu.hideout.core.domain.model.meta.Jwt
|
||||
import dev.usbharu.hideout.core.domain.model.meta.Meta
|
||||
import dev.usbharu.hideout.core.domain.model.meta.MetaRepository
|
|
@ -1,13 +1,12 @@
|
|||
@file:OptIn(ExperimentalCoroutinesApi::class)
|
||||
|
||||
package dev.usbharu.hideout.service.user
|
||||
package dev.usbharu.hideout.core.service.user
|
||||
|
||||
import dev.usbharu.hideout.application.config.ApplicationConfig
|
||||
import dev.usbharu.hideout.application.config.CharacterLimit
|
||||
import dev.usbharu.hideout.core.domain.model.post.Post
|
||||
import dev.usbharu.hideout.core.domain.model.user.User
|
||||
import dev.usbharu.hideout.core.domain.model.user.UserRepository
|
||||
import dev.usbharu.hideout.core.service.user.*
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.jupiter.api.Test
|
Loading…
Reference in New Issue