diff --git a/save-backend/src/test/kotlin/com/saveourtool/save/backend/security/ConverterTest.kt b/save-backend/src/test/kotlin/com/saveourtool/save/backend/security/ConverterTest.kt index 9e7adcbf42..0313c7b868 100644 --- a/save-backend/src/test/kotlin/com/saveourtool/save/backend/security/ConverterTest.kt +++ b/save-backend/src/test/kotlin/com/saveourtool/save/backend/security/ConverterTest.kt @@ -1,13 +1,11 @@ package com.saveourtool.save.backend.security import com.saveourtool.save.authservice.security.CustomAuthenticationBasicConverter -import com.saveourtool.save.authservice.service.AuthenticationUserDetailsService import com.saveourtool.save.authservice.utils.AuthenticationDetails import com.saveourtool.save.authservice.utils.identitySource import com.saveourtool.save.utils.AUTHORIZATION_SOURCE import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test -import org.mockito.kotlin.mock import org.springframework.http.HttpHeaders import org.springframework.mock.http.server.reactive.MockServerHttpRequest import org.springframework.mock.web.server.MockServerWebExchange @@ -15,8 +13,7 @@ import org.springframework.security.authentication.UsernamePasswordAuthenticatio import java.util.Base64 class ConverterTest { - private val authenticationUserDetailsService: AuthenticationUserDetailsService = mock() - private val customAuthenticationBasicConverter = CustomAuthenticationBasicConverter(authenticationUserDetailsService) + private val customAuthenticationBasicConverter = CustomAuthenticationBasicConverter() @Test fun `should convert`() { diff --git a/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entities/User.kt b/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entities/User.kt index 2798f960f4..ea6e3fa919 100644 --- a/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entities/User.kt +++ b/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entities/User.kt @@ -13,7 +13,7 @@ import javax.persistence.* * @property name * @property password *in plain text* * @property role role of this user - * @property source where the user identity is coming from, e.g. "github" // TODO: need to remove this field + * @property source where the user identity is coming from, e.g. "github" * @property email email of user * @property avatar avatar of user * @property company