Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Users] 테스트 코드 작성 #96

Open
2 tasks done
nitronium102 opened this issue Apr 7, 2023 · 3 comments · Fixed by #97
Open
2 tasks done

[Users] 테스트 코드 작성 #96

nitronium102 opened this issue Apr 7, 2023 · 3 comments · Fixed by #97

Comments

@nitronium102
Copy link
Collaborator

nitronium102 commented Apr 7, 2023

목표

Jwt 및 Redis authentication까지 검증할 수 있는 test code 작성

  • 회원가입
  • 로그인
@nitronium102
Copy link
Collaborator Author

@nitronium102
Copy link
Collaborator Author

JwtProviderTest

ReflectionTestUtils

private method에 값을 삽입해야 test할 수 있으나, private 특성 상 외부 class에서 접근이 불가능함
-> ReflectionTestUtils를 이용해서 임의의 객체에 값 삽입
https://www.baeldung.com/spring-reflection-test-utils

@nitronium102
Copy link
Collaborator Author

https://stackoverflow.com/questions/45241566/spring-boot-unit-tests-with-jwt-token-security

@nitronium102 nitronium102 linked a pull request May 9, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant