Skip to content

Commit

Permalink
style: 개행 및 코드 재정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
nayonsoso committed Aug 10, 2024
1 parent 52920e9 commit ce2dfc6
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import java.util.List;

public record CreateReviewRequest (
public record CreateReviewRequest(
String reviewRequestCode,
List<CreateReviewAnswerRequest> answers
){
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import reviewme.question.domain.Question2;
import reviewme.question.repository.Question2Repository;
import reviewme.review.dto.request.create.CreateReviewAnswerRequest;
import reviewme.review.service.exception.SelectedCheckBoxAnswerCountOutOfRange;
import reviewme.review.service.exception.CheckBoxAnswerIncludedNotProvidedOptionItemException;
import reviewme.review.service.exception.CheckBoxAnswerIncludedTextException;
import reviewme.review.service.exception.RequiredQuestionMustBeAnsweredException;
import reviewme.review.service.exception.SelectedCheckBoxAnswerCountOutOfRange;
import reviewme.template.domain.exception.OptionGroupNotFoundException;
import reviewme.template.repository.OptionGroupRepository;
import reviewme.template.repository.OptionItemRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void validate(CreateReviewAnswerRequest request) {
validateQuestionRequired(question, request);
}

private static void validateNotIncludingOptions(CreateReviewAnswerRequest request) {
private void validateNotIncludingOptions(CreateReviewAnswerRequest request) {
if (request.selectedOptionIds() != null) {
throw new TextAnswerIncudedOptionException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
@Slf4j
public class CheckBoxAnswerIncludedNotProvidedOptionItemException extends BadRequestException {

public CheckBoxAnswerIncludedNotProvidedOptionItemException(List<Long> providedOptionIds, List<Long> submittedOptionIds) {
public CheckBoxAnswerIncludedNotProvidedOptionItemException(List<Long> providedOptionIds,
List<Long> submittedOptionIds) {
super("제공되는 선택지에 없는 선택지를 응답했어요.");
log.info("Answer included not provided options - providedOptionIds: {}, submittedOptionIds: {}",
providedOptionIds, submittedOptionIds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
@Slf4j
public class SubmittedQuestionAndProvidedQuestionMismatchException extends BadRequestException {

public SubmittedQuestionAndProvidedQuestionMismatchException(List<Long> submittedQuestionIds, List<Long> providedQuestionIds) {
public SubmittedQuestionAndProvidedQuestionMismatchException(List<Long> submittedQuestionIds,
List<Long> providedQuestionIds) {
super("제출된 응답이 제공된 질문과 매칭되지 않아요.");
log.info("Submitted questions mismatch with provided questions - submittedQuestionIds: {}, providedQuestionIds: {}",
log.info(
"Submitted questions mismatch with provided questions - submittedQuestionIds: {}, providedQuestionIds: {}",
submittedQuestionIds, providedQuestionIds);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Getter
public class Template {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ class ReviewRepositoryTest {

// then
assertThat(actual).map(Review::getId)
.containsExactly(review4.getId(), review2.getId(), review1.getId(), review3.getId());
.containsExactly(review4.getId(), review2.getId(), review1.getId(), review3.getId());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import reviewme.review.dto.request.create.CreateReviewAnswerRequest;
import reviewme.review.service.exception.CheckBoxAnswerIncludedNotProvidedOptionItemException;
import reviewme.review.service.exception.CheckBoxAnswerIncludedTextException;
import reviewme.review.service.exception.SelectedCheckBoxAnswerCountOutOfRange;
import reviewme.review.service.exception.RequiredQuestionMustBeAnsweredException;
import reviewme.review.service.exception.SelectedCheckBoxAnswerCountOutOfRange;
import reviewme.support.ServiceTest;
import reviewme.template.domain.exception.OptionGroupNotFoundException;
import reviewme.template.repository.OptionGroupRepository;
Expand Down

0 comments on commit ce2dfc6

Please sign in to comment.