Skip to content

Commit

Permalink
test: 행사 생성 컨트롤러 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
3Juhwan committed Jul 24, 2024
1 parent bb8bcf1 commit 809c19a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
import server.haengdong.application.EventService;
import server.haengdong.application.request.EventAppRequest;
import server.haengdong.application.response.EventAppResponse;
Expand Down Expand Up @@ -49,7 +48,7 @@ void saveEvent() throws Exception {
.content(requestBody))
.andDo(print())
.andExpect(status().isOk())
.andExpect(MockMvcResultMatchers.redirectedUrl("events/" + token));
.andExpect(jsonPath("$.url").value("TOKEN"));
}

@DisplayName("토큰으로 행사를 조회한다.")
Expand Down

0 comments on commit 809c19a

Please sign in to comment.