diff --git a/src/test/java/com/safetypin/authentication/controller/AuthenticationControllerTest.java b/src/test/java/com/safetypin/authentication/controller/AuthenticationControllerTest.java index db80b8a101dae1983f9cdbc9b0f943e9a88c24b7..6be07bdf87b82f2d086dea329ed75403795e0be6 100644 --- a/src/test/java/com/safetypin/authentication/controller/AuthenticationControllerTest.java +++ b/src/test/java/com/safetypin/authentication/controller/AuthenticationControllerTest.java @@ -66,7 +66,7 @@ class AuthenticationControllerTest { .contentType(MediaType.APPLICATION_JSON) .content(objectMapper.writeValueAsString(request))) .andExpect(status().isOk()) - .andExpect(jsonPath("$.data.token").value(token)); + .andExpect(jsonPath("$.data.tokenValue").value(token)); } @Test @@ -98,7 +98,7 @@ class AuthenticationControllerTest { .contentType(MediaType.APPLICATION_JSON) .content(objectMapper.writeValueAsString(request))) .andExpect(status().isOk()) - .andExpect(jsonPath("$.data.token").value(token)); + .andExpect(jsonPath("$.data.tokenValue").value(token)); } @Test @@ -122,7 +122,7 @@ class AuthenticationControllerTest { .param("email", "email@example.com") .param("password", "password")) .andExpect(status().isOk()) - .andExpect(jsonPath("$.data.token").value(token)); + .andExpect(jsonPath("$.data.tokenValue").value(token)); } @Test @@ -145,7 +145,7 @@ class AuthenticationControllerTest { mockMvc.perform(post("/api/auth/login-social") .param("email", "social@example.com")) .andExpect(status().isOk()) - .andExpect(jsonPath("$.data.token").value(token)); + .andExpect(jsonPath("$.data.tokenValue").value(token)); } @Test