Skip to content

Commit

Permalink
첨삭 완료 Progress 추가 (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
beomukim authored Nov 27, 2023
1 parent 7149939 commit cad4df4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import static lombok.AccessLevel.PROTECTED;
import static org.devcourse.resumeme.business.event.domain.Progress.APPLY;
import static org.devcourse.resumeme.business.event.domain.Progress.COMPLETE;
import static org.devcourse.resumeme.business.event.domain.Progress.FEEDBACK_COMPLETE;
import static org.devcourse.resumeme.business.event.domain.Progress.REJECT;
import static org.devcourse.resumeme.common.util.Validator.notNull;

Expand Down Expand Up @@ -93,8 +94,12 @@ public void completeEvent(String overallReview) {

if (progress != COMPLETE) {
this.overallReview = overallReview;
this.progress = COMPLETE;
this.progress = FEEDBACK_COMPLETE;
}
}

public void editComplete() {
this.progress = COMPLETE;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public enum Progress implements DocsEnumType {
APPLY("참여 중"),
REQUEST("재 요청"),
FEEDBACK_COMPLETE("첨삭 완료"),
REJECT("반려 됨"),
COMPLETE("완료")
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.devcourse.resumeme.business.event.domain.Progress.REQUEST;

@DisplayNameGeneration(DisplayNameGenerator.ReplaceUnderscores.class)
class EventTest {
Expand Down

0 comments on commit cad4df4

Please sign in to comment.