-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from kakao-tech-campus-2nd-step3/weekly
오류 수정
- Loading branch information
Showing
5 changed files
with
14 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,5 +28,15 @@ public void creator() { | |
LocalDateTime.of(2024, 10, 1, 0, 0, 0), | ||
LocalDateTime.of(2025, 10, 1, 0, 0, 0) | ||
), "[email protected]", Role.USER.getKey()); | ||
|
||
projectService.createProject( | ||
new ProjectCreate( | ||
"프로젝트 이름2", | ||
"프로젝트 설명2", | ||
"https://example.com/image2.jpg", | ||
List.of(1L, 2L, 3L), | ||
LocalDateTime.of(2024, 11, 11, 0, 0, 0), | ||
LocalDateTime.of(2025, 11, 11, 0, 0, 0) | ||
), "[email protected]", Role.USER.getKey()); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,7 @@ public void setUp() { | |
HttpEntity<Long> requestEntity = new HttpEntity(body, headers); | ||
|
||
ResponseEntity<String> responseEntity = restTemplate.exchange( | ||
url + port + "/api/project/1/task", POST, requestEntity, String.class); | ||
url + port + "/api/project/2/task", POST, requestEntity, String.class); | ||
|
||
assertThat(responseEntity.getStatusCode()).isEqualTo(BAD_REQUEST); | ||
} | ||
|
@@ -104,7 +104,7 @@ public void setUp() { | |
HttpEntity<Long> requestEntity = new HttpEntity(body, headers); | ||
|
||
ResponseEntity<String> responseEntity = restTemplate.exchange( | ||
url + port + "/api/project/1/task", POST, requestEntity, String.class); | ||
url + port + "/api/project/2/task", POST, requestEntity, String.class); | ||
|
||
assertThat(responseEntity.getStatusCode()).isEqualTo(BAD_REQUEST); | ||
} | ||
|
@@ -113,12 +113,12 @@ public void setUp() { | |
@Test | ||
public void 프로젝트_삭제시_태스크_조회_실패() { | ||
// 프로젝트 삭제 | ||
projectService.deleteProject(1L, "[email protected]", Role.USER.toString()); | ||
projectService.deleteProject(2L, "[email protected]", Role.USER.toString()); | ||
|
||
HttpEntity<Long> requestEntity = new HttpEntity<>(headers); | ||
|
||
ResponseEntity<String> responseEntity = restTemplate.exchange( | ||
url + port + "/api/project/task/1", GET, requestEntity, String.class); | ||
url + port + "/api/project/task/2", GET, requestEntity, String.class); | ||
|
||
assertThat(responseEntity.getStatusCode()).isEqualTo(NOT_FOUND); | ||
} | ||
|
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