-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
97 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/com/jiyunio/todolist/category/CategoryDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.jiyunio.todolist.category; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@Schema(description = "카테고리 생성 & 조회 & 수정") | ||
public class CategoryDTO { | ||
@NotBlank | ||
private String content; | ||
|
||
@NotBlank | ||
private String color; | ||
|
||
@Builder | ||
protected CategoryDTO(String content, String color) { | ||
this.content = content; | ||
this.color = color; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/main/java/com/jiyunio/todolist/category/GetCategoryDTO.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 7 additions & 48 deletions
55
src/test/java/com/jiyunio/todolist/TodolistApplicationTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,7 @@ | ||
//package com.jiyunio.todolist; | ||
// | ||
//import com.jiyunio.todolist.member.Member; | ||
//import com.jiyunio.todolist.member.MemberRepository; | ||
//import com.jiyunio.todolist.member.MemberService; | ||
//import com.jiyunio.todolist.member.dto.SignInDTO; | ||
//import org.junit.jupiter.api.BeforeEach; | ||
//import org.junit.jupiter.api.DisplayName; | ||
//import org.junit.jupiter.api.Test; | ||
//import org.mockito.Mockito; | ||
//import org.springframework.boot.test.context.SpringBootTest; | ||
//import org.springframework.boot.test.mock.mockito.MockBean; | ||
//import static org.assertj.core.api.Assertions.*; | ||
// | ||
//@SpringBootTest | ||
//class TodolistApplicationTests { | ||
// MemberService memberService; | ||
// | ||
// @MockBean | ||
// MemberRepository memberRepository; | ||
// | ||
// @BeforeEach | ||
// void setUpTeat() { | ||
// // 가짜 객체 주입 | ||
// memberService = new MemberService(memberRepository); | ||
// } | ||
// @DisplayName("회원 로그인 test") | ||
// @Test | ||
// void SignInMemberTest() { | ||
// // given | ||
// Member member = Member.builder() | ||
// .userId("jiyun") | ||
// .userPw("qwe123!") | ||
// .build(); | ||
// Mockito.when(memberRepository.save(member)).thenReturn(member); | ||
// | ||
// // when | ||
// SignInDTO signInDTO = new SignInDTO(); | ||
// signInDTO.setUserId("jiyun"); | ||
// signInDTO.setUserPw("qwe123!"); | ||
// | ||
// String userId = memberService.signIn(signInDTO); | ||
// | ||
// // then | ||
// assertThat(userId).isEqualTo("jiyun"); | ||
// } | ||
// | ||
//} | ||
package com.jiyunio.todolist; | ||
|
||
import org.springframework.boot.test.context.SpringBootTest; | ||
|
||
@SpringBootTest | ||
class TodolistApplicationTests { | ||
} |