Skip to content

Commit

Permalink
fix: 빌드 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
youKeon committed Nov 22, 2023
1 parent f6a0f70 commit a696805
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import javax.validation.constraints.NotNull;

@Getter
@AllArgsConstructor @NoArgsConstructor
public class BookmarkSaveRequest {
@NotNull(message = "공백일 수 없습니다.")
private Long problemId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.psq.backend.member.dto.request;

import lombok.AllArgsConstructor;
import lombok.Getter;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

//@AllArgsConstructor
@AllArgsConstructor
@Getter
public class MemberSignInRequest {
@NotBlank(message = "공백일 수 없습니다.")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.psq.backend.member.dto.request;

import com.psq.backend.member.domain.Member;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

//@AllArgsConstructor
@AllArgsConstructor
@Getter
public class MemberSignUpRequest {
@NotBlank(message = "공백일 수 없습니다.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import com.psq.backend.member.domain.Member;
import com.psq.backend.problem.domain.Category;
import com.psq.backend.problem.domain.Problem;
import lombok.AllArgsConstructor;
import lombok.Getter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@AllArgsConstructor
@Getter
public class ProblemSaveRequest {
@NotBlank(message = "공백일 수 없습니다.")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package com.psq.backend.problem.dto.request;

import com.psq.backend.problem.domain.Category;
import lombok.AllArgsConstructor;
import lombok.Getter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@AllArgsConstructor
@Getter
public class ProblemUpdateRequest {
@NotBlank(message = "공백일 수 없습니다.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public void recommendProblemEmptyProblemExceptionTest() {
assertThatThrownBy(
() -> problemService.recommendProblem(member.getId()))
.isInstanceOf(NoSuchProblemException.class)
.hasMessageContaining("존재하지 않는 문제입니다.");
.hasMessageContaining("추천을 위한 문제가 충분하지 않습니다.");
}

@Test
Expand Down

0 comments on commit a696805

Please sign in to comment.