Skip to content

Commit

Permalink
test/#359: DeleteMemberIntegrationTest 수정
Browse files Browse the repository at this point in the history
- 회원 탈퇴 데이터 검증
  • Loading branch information
LJH098 committed Jul 12, 2024
1 parent 296720b commit 3a713d2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.gaebaljip.exceed.member;

import static org.junit.jupiter.api.Assertions.assertAll;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
Expand All @@ -22,7 +24,7 @@ public class DeleteMemberIntegrationTest extends IntegrationTest {
void deleteMember() throws Exception {

// given

long memberId = 1L;
// when
ResultActions resultActions = mockMvc.perform(delete("/v1/members"));

Expand All @@ -31,6 +33,7 @@ void deleteMember() throws Exception {

// then
resultActions.andExpect(status().isOk());
assertAll(() -> assertFalse(memberRepository.existsById(memberId)));
}

@Test
Expand Down

0 comments on commit 3a713d2

Please sign in to comment.