Skip to content

Commit

Permalink
reverted changes in test
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Jul 20, 2023
1 parent 496c885 commit 0264903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
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
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import java.util.Base64

class ConverterTest {
private val authenticationUserDetailsService: AuthenticationUserDetailsService = mock()
private val customAuthenticationBasicConverter = CustomAuthenticationBasicConverter(authenticationUserDetailsService)
private val customAuthenticationBasicConverter = CustomAuthenticationBasicConverter()

@Test
fun `should convert`() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0264903

Please sign in to comment.