mirror of https://github.com/usbharu/Hideout.git
test: テストも修正
This commit is contained in:
parent
309ea569e8
commit
96d51a885f
|
@ -22,7 +22,7 @@ import org.mockito.kotlin.doReturn
|
|||
import org.mockito.kotlin.eq
|
||||
import org.mockito.kotlin.whenever
|
||||
import utils.TestTransaction
|
||||
import java.net.URL
|
||||
import java.net.URI
|
||||
|
||||
@ExtendWith(MockitoExtension::class)
|
||||
class RegisterLocalActorApplicationServiceTest {
|
||||
|
@ -51,7 +51,7 @@ class RegisterLocalActorApplicationServiceTest {
|
|||
val transaction = TestTransaction
|
||||
|
||||
@Spy
|
||||
val applicationConfig = ApplicationConfig(URL("http://example.com"))
|
||||
val applicationConfig = ApplicationConfig(URI.create("http://example.com"))
|
||||
|
||||
@Spy
|
||||
val idGenerateService = TwitterSnowflakeIdGenerateService
|
||||
|
|
|
@ -15,7 +15,7 @@ class RemoteActorCheckDomainServiceTest {
|
|||
|
||||
val remoteActor = RemoteActorCheckDomainService(
|
||||
ApplicationConfig(
|
||||
URI.create("https://local.example.com").toURL()
|
||||
URI.create("https://local.example.com")
|
||||
)
|
||||
).isRemoteActor(
|
||||
actor
|
||||
|
@ -30,7 +30,7 @@ class RemoteActorCheckDomainServiceTest {
|
|||
|
||||
val localActor = RemoteActorCheckDomainService(
|
||||
ApplicationConfig(
|
||||
URI.create("https://local.example.com").toURL()
|
||||
URI.create("https://local.example.com")
|
||||
)
|
||||
).isRemoteActor(
|
||||
actor
|
||||
|
|
|
@ -15,7 +15,7 @@ import org.mockito.junit.jupiter.MockitoExtension
|
|||
import org.mockito.kotlin.doReturn
|
||||
import org.mockito.kotlin.eq
|
||||
import org.mockito.kotlin.whenever
|
||||
import java.net.URL
|
||||
import java.net.URI
|
||||
|
||||
@ExtendWith(MockitoExtension::class)
|
||||
class LocalActorDomainServiceImplTest {
|
||||
|
@ -26,7 +26,7 @@ class LocalActorDomainServiceImplTest {
|
|||
lateinit var actorRepository: ActorRepository
|
||||
|
||||
@Spy
|
||||
val applicationConfig = ApplicationConfig(URL("http://example.com"))
|
||||
val applicationConfig = ApplicationConfig(URI.create("http://example.com"))
|
||||
|
||||
@Test
|
||||
fun findByNameAndDomainがnullならfalse() = runTest {
|
||||
|
|
|
@ -19,7 +19,7 @@ import org.mockito.junit.jupiter.MockitoExtension
|
|||
import org.mockito.kotlin.*
|
||||
import org.springframework.security.core.userdetails.UsernameNotFoundException
|
||||
import utils.TestTransaction
|
||||
import java.net.URL
|
||||
import java.net.URI
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
@ExtendWith(MockitoExtension::class)
|
||||
|
@ -34,7 +34,7 @@ class UserDetailsServiceImplTest {
|
|||
lateinit var userDetailRepository: UserDetailRepository
|
||||
|
||||
@Spy
|
||||
val applicationConfig = ApplicationConfig(URL("http://example.com"))
|
||||
val applicationConfig = ApplicationConfig(URI.create("http://example.com"))
|
||||
|
||||
@Spy
|
||||
val transaction = TestTransaction
|
||||
|
|
Loading…
Reference in New Issue