diff --git a/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/application/actor/RegisterLocalActorApplicationServiceTest.kt b/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/application/actor/RegisterLocalActorApplicationServiceTest.kt index e0087535..309f41cf 100644 --- a/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/application/actor/RegisterLocalActorApplicationServiceTest.kt +++ b/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/application/actor/RegisterLocalActorApplicationServiceTest.kt @@ -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 diff --git a/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/domain/service/actor/RemoteActorCheckDomainServiceTest.kt b/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/domain/service/actor/RemoteActorCheckDomainServiceTest.kt index 0b7acd6d..1eb4af84 100644 --- a/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/domain/service/actor/RemoteActorCheckDomainServiceTest.kt +++ b/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/domain/service/actor/RemoteActorCheckDomainServiceTest.kt @@ -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 diff --git a/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/domain/service/actor/local/LocalActorDomainServiceImplTest.kt b/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/domain/service/actor/local/LocalActorDomainServiceImplTest.kt index a5fcf1a1..4116b0e2 100644 --- a/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/domain/service/actor/local/LocalActorDomainServiceImplTest.kt +++ b/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/domain/service/actor/local/LocalActorDomainServiceImplTest.kt @@ -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 { diff --git a/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/oauth2/UserDetailsServiceImplTest.kt b/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/oauth2/UserDetailsServiceImplTest.kt index cf24d329..652de5f0 100644 --- a/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/oauth2/UserDetailsServiceImplTest.kt +++ b/hideout-core/src/test/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/oauth2/UserDetailsServiceImplTest.kt @@ -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