Skip to content

Commit

Permalink
fix : ci 테스트 실패 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
hyun2371 committed Jan 8, 2024
1 parent f18dbdc commit c2eb81e
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,16 @@ void getWaiting() throws Exception {
.contentType(APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(jsonPath("$.shopWaitings", hasSize(3)))
.andExpect(jsonPath("$.shopWaitings[0].waitingId").value(1))
.andExpect(jsonPath("$.shopWaitings[0].waitingNumber").value(1))
.andExpect(jsonPath("$.shopWaitings[0].rank").value(1))
.andExpect(jsonPath("$.shopWaitings[0].peopleCount").value(2))
.andExpect(jsonPath("$.shopWaitings[1].waitingId").value(2))
.andExpect(jsonPath("$.shopWaitings[1].waitingNumber").value(2))
.andExpect(jsonPath("$.shopWaitings[1].rank").value(2))
.andExpect(jsonPath("$.shopWaitings[1].peopleCount").value(2))
.andExpect(jsonPath("$.shopWaitings[0].waitingId").value(waiting1.getId()))
.andExpect(
jsonPath("$.shopWaitings[0].waitingNumber").value(waiting1.getWaitingNumber()))
.andExpect(jsonPath("$.shopWaitings[0].rank").value(1L))
.andExpect(jsonPath("$.shopWaitings[0].peopleCount").value(waiting1.getPeopleCount()))
.andExpect(jsonPath("$.shopWaitings[1].waitingId").value(waiting2.getId()))
.andExpect(
jsonPath("$.shopWaitings[1].waitingNumber").value(waiting2.getWaitingNumber()))
.andExpect(jsonPath("$.shopWaitings[1].rank").value(2L))
.andExpect(jsonPath("$.shopWaitings[1].peopleCount").value(waiting2.getPeopleCount()))
;
}

Expand Down

0 comments on commit c2eb81e

Please sign in to comment.