Skip to content

Commit 79427e1

Browse files
committed
test: Student 테스트 코드 작성
1 parent 0ee5213 commit 79427e1

4 files changed

Lines changed: 347 additions & 57 deletions

File tree

src/main/java/com/neeis/neeis/domain/student/dto/req/FindIdRequestDto.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.neeis.neeis.domain.student.dto.req;
22

33
import io.swagger.v3.oas.annotations.media.Schema;
4+
import jakarta.validation.constraints.NotBlank;
45
import lombok.Builder;
56
import lombok.Getter;
67
import lombok.NoArgsConstructor;
@@ -10,12 +11,15 @@
1011
public class FindIdRequestDto {
1112

1213
@Schema(description = "이름" , example= "김마리")
14+
@NotBlank
1315
private String name;
1416

1517
@Schema(description = "전화번호" , example= "010-2222-2222")
18+
@NotBlank
1619
private String phone;
1720

1821
@Schema(description = "학교" , example= "인천중학교")
22+
@NotBlank
1923
private String school;
2024

2125
@Builder

src/main/java/com/neeis/neeis/domain/student/dto/req/PasswordRequestDto.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.neeis.neeis.domain.student.dto.req;
22

33
import io.swagger.v3.oas.annotations.media.Schema;
4+
import jakarta.validation.constraints.NotBlank;
45
import lombok.Builder;
56
import lombok.Getter;
67
import lombok.NoArgsConstructor;
@@ -10,15 +11,19 @@
1011
public class PasswordRequestDto {
1112

1213
@Schema(description = "이름" , example= "김마리")
14+
@NotBlank
1315
private String name;
1416

1517
@Schema(description = "전화번호" , example= "010-2222-2222")
18+
@NotBlank
1619
private String phone;
1720

1821
@Schema(description = "주민번호" , example= "100404-4011111")
22+
@NotBlank
1923
private String ssn;
2024

2125
@Schema(description = "학교" , example= "인천중학교")
26+
@NotBlank
2227
private String school;
2328

2429
@Builder

0 commit comments

Comments
 (0)