generated from pricelees/issue-pr-template
feat: 테스트에서 로그인 유저 정보 조회 기능 추가
This commit is contained in:
parent
c057fa85e2
commit
cb14e1d6a5
@ -49,6 +49,11 @@ class LoginUtil(
|
|||||||
fun loginAsUser(): String {
|
fun loginAsUser(): String {
|
||||||
return login(MemberFixture.user.email, MemberFixture.user.password)
|
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(
|
fun runTest(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user