-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat : 밸리데이션 정리 및 밸리데이션 테스트 코드 작성 #345
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
엘쥐티엠!
|
||
public Boolean is(IssuedTicket issuedTicket) { | ||
return issuedTicket.getIssuedTicketStatus() == IssuedTicketStatus.ENTRANCE_INCOMPLETE; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 어디에 쓰는건가염
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@@ -190,7 +190,7 @@ public void entrance() { | |||
티켓이 입장 완료 상태가 아니면 입장 취소 할 수 없음 | |||
*/ | |||
public void entranceCancel() { | |||
if (this.issuedTicketStatus != IssuedTicketStatus.ENTRANCE_COMPLETED) { | |||
if (!this.issuedTicketStatus.isAfterEntrance()) { | |||
throw CanNotCancelEntranceException.EXCEPTION; | |||
} | |||
this.issuedTicketStatus = IssuedTicketStatus.ENTRANCE_INCOMPLETE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Event
엔티티의 setStatus()
참고하면 중복된 코드 구조 줄일 수 있을 거 같아욤
개요
작업사항
변경로직