Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

회원가입 기능 테스트코드 작성 #4

Closed
neropsys opened this issue Apr 24, 2021 · 1 comment
Closed

회원가입 기능 테스트코드 작성 #4

neropsys opened this issue Apr 24, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@neropsys
Copy link
Collaborator

회원테이블 인터페이스 설계

@neropsys neropsys created this issue from a note in awesome-wiki (To do) Apr 24, 2021
kmmin78 pushed a commit that referenced this issue Apr 24, 2021
User 인터페이스 생성
UserLoginService 인터페이스 생성
UserLoginRepository 인터페이스 생성
SessionRepository 인터페이스 생성

각 인터페이스 별 구현체도 생성했음.

Mockito, Hamcrest, faker 의존성 추가했음.

Given When Then

* given : 로그인 하지 않은 사용자는
* when : 이메일/비밀번호 입력 후 로그인 버튼을 클릭했을 때
* and : 이메일/비밀번호가 일치하는 회원이 있으면
* expected/then : 세션에 유저 정보를 저장하고
* and : 로그인에 성공한다.
*
* given : 로그인 하지 않은 사용자는
* when : 이메일/비밀번호 입력 후 로그인 버튼을 클릭했을 때
* and : 이메일이 이메일 형식이 아니면
* expected/then : 로그인에 실패한다.
*
* given : 로그인 하지 않은 사용자는
* when : 이메일/비밀번호 입력 후 로그인 버튼을 클릭했을 때
* and : 이메일 혹은 비밀번호가 비어있으면
* expected/then : 로그인에 실패한다.
*
* given : 로그인 하지 않은 사용자는
* when : 이메일/비밀번호 입력 후 로그인 버튼을 클릭했을 때
* and : 이메일/비밀번호가 일치하는 회원이 없으면
* expected/then : 로그인에 실패한다.

테스트 코드는 위의 첫번째 케이스만 작성한 상태임.
@kmmin78 kmmin78 moved this from To do to In progress in awesome-wiki Apr 24, 2021
@f-lab-hwan f-lab-hwan linked a pull request Apr 26, 2021 that will close this issue
@f-lab-edu f-lab-edu deleted a comment from neropsys Apr 26, 2021
@f-lab-hwan f-lab-hwan added the enhancement New feature or request label Apr 26, 2021
@f-lab-hwan f-lab-hwan moved this from In progress to CodeReview in awesome-wiki Apr 26, 2021
@FrancescoJo FrancescoJo moved this from CodeReview to Done in awesome-wiki May 12, 2021
@FrancescoJo
Copy link
Collaborator

관련 Issue 를 merge 했으므로 issue 종결 처리

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

4 participants