feat: 테스트에서 로그인 유저 정보 조회 기능 추가

This commit is contained in:
이상진 2025-09-09 09:12:25 +09:00
parent c057fa85e2
commit cb14e1d6a5

View File

@ -49,6 +49,11 @@ class LoginUtil(
fun loginAsUser(): String {
return login(MemberFixture.user.email, MemberFixture.user.password)
}
fun getUser(): MemberEntity = memberRepository.findByEmailAndPassword(
MemberFixture.user.email,
MemberFixture.user.password
) ?: throw AssertionError("Unexpected Exception Occurred.")
}
fun runTest(