-
Notifications
You must be signed in to change notification settings - Fork 1
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
2 changed files
with
7 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,16 +162,18 @@ class WorkBookControllerTest : ControllerTestSpec() { | |
} | ||
|
||
@Test | ||
@DisplayName("[DELETE] /api/v1/workbooks/{workbookId}/csubs") | ||
@DisplayName("[POST] /api/v1/workbooks/{workbookId}/unsubs") | ||
fun cancelSubWorkBook() { | ||
// given | ||
val api = "CancelSubWorkBook" | ||
val uri = UriComponentsBuilder.newInstance() | ||
.path("$BASE_URL/{workbookId}/csubs") | ||
.path("$BASE_URL/{workbookId}/unsubs") | ||
.build() | ||
.toUriString() | ||
// set usecase mock | ||
val body = objectMapper.writeValueAsString(CancelSubWorkBookBody(email = "[email protected]", opinion = "취소합니다.")) | ||
val body = objectMapper.writeValueAsString( | ||
CancelSubWorkBookBody(email = "[email protected]", opinion = "취소합니다.", reason = "이유없음") | ||
) | ||
|
||
// when | ||
this.webTestClient.post() | ||
|