diff --git a/src/test/java/com/dnd/jjakkak/domain/member/controller/AuthControllerTest.java b/src/test/java/com/dnd/jjakkak/domain/member/controller/AuthControllerTest.java index ed5a430..1e3b7c2 100644 --- a/src/test/java/com/dnd/jjakkak/domain/member/controller/AuthControllerTest.java +++ b/src/test/java/com/dnd/jjakkak/domain/member/controller/AuthControllerTest.java @@ -15,7 +15,8 @@ import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.when; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; /** * AuthController 테스트 클래스입니다. @@ -98,7 +99,7 @@ void testReissue_InvalidRefreshToken() throws Exception { .cookie(refreshCookie)) .andExpectAll( status().isOk(), - header().string("Authorization", accessToken) + jsonPath("$.accessToken").value(accessToken) ); } }