Skip to content

Commit

Permalink
[feature/Inhabas#234] requestPart 문제 해결, 모든 테스트 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
skytin1004 committed Feb 26, 2024
1 parent 277c02a commit 5d7c35b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.net.URI;
import java.util.List;

import javax.validation.Valid;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

Expand Down Expand Up @@ -191,7 +192,7 @@ public ResponseEntity<ContestBoardDetailDto> getContestBoard(
public ResponseEntity<Void> writeContestBoard(
@Authenticated Long memberId,
@PathVariable ContestType contestType,
@RequestPart("form") SaveContestBoardDto form,
@Valid @RequestPart("form") SaveContestBoardDto form,
@RequestPart(value = "files", required = false) List<MultipartFile> files) {

SaveContestBoardDto saveContestBoardDto =
Expand Down Expand Up @@ -251,7 +252,7 @@ public ResponseEntity<Long> updateContestBoard(
@Authenticated Long memberId,
@PathVariable ContestType contestType,
@PathVariable Long boardId,
@RequestPart SaveContestBoardDto form,
@Valid @RequestPart SaveContestBoardDto form,
@RequestPart(value = "files", required = false) List<MultipartFile> files) {

SaveContestBoardDto saveContestBoardDto =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,4 +439,5 @@ void deleteBoard_Not_Found() throws Exception {
// then
assertThat(response).contains(NOT_FOUND.getMessage());
}

}

0 comments on commit 5d7c35b

Please sign in to comment.