Skip to content

Commit

Permalink
[Fix] 명세에 맞게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
AreSain committed Jul 24, 2024
1 parent d8cf8b3 commit bdd8796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ public ResponseEntity<List<ConfirmTeamResDto>> confirmTeamList(@RequestBody @Val
public ResponseEntity<Void> attendTeamModify(@Parameter(hidden = true) @Login UserDto user,
@RequestBody @Valid TeamKeyReqDto teamKeyReqDto, @RequestParam("agenda_key") UUID agendaKey) {
agendaTeamService.modifyAttendTeam(user, teamKeyReqDto, agendaKey);
return ResponseEntity.noContent().build();
return ResponseEntity.status(HttpStatus.CREATED).build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ void beforeEach() {
}

@Test
@DisplayName("204 팀 참가 신청 성공")
@DisplayName("201 팀 참가 신청 성공")
public void applyTeamSuccess() throws Exception {
//given
Agenda agenda = agendaFixture.createAgenda(SEOUL);
Expand All @@ -1207,7 +1207,7 @@ public void applyTeamSuccess() throws Exception {
.param("agenda_key", agenda.getAgendaKey().toString())
.content(content)
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isNoContent());
.andExpect(status().isCreated());
// then
AgendaTeam updatedTeam = agendaTeamRepository.findByTeamKey(team.getTeamKey()).orElse(null);
assert updatedTeam != null;
Expand Down

0 comments on commit bdd8796

Please sign in to comment.