|
@@ -132,7 +132,7 @@ public class UserAuthFlowTest extends GatewayBaseTest {
|
|
|
public void testRefreshToken() throws Exception {
|
|
public void testRefreshToken() throws Exception {
|
|
|
MvcResult result = mockMvc.perform(post("/api/auth/refresh")
|
|
MvcResult result = mockMvc.perform(post("/api/auth/refresh")
|
|
|
.contentType(MediaType.APPLICATION_JSON)
|
|
.contentType(MediaType.APPLICATION_JSON)
|
|
|
- .content("\"" + refreshToken + "\""))
|
|
|
|
|
|
|
+ .content("{\"refreshToken\":\"" + refreshToken + "\"}"))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
.andExpect(jsonPath("$.code").value(200))
|
|
.andExpect(jsonPath("$.code").value(200))
|
|
|
.andExpect(jsonPath("$.data.accessToken").exists())
|
|
.andExpect(jsonPath("$.data.accessToken").exists())
|