Created
February 23, 2023 12:05
-
-
Save GHGHGHKO/ba18fff85addea0260b82e683552c8df to your computer and use it in GitHub Desktop.
Revisions
-
GHGHGHKO created this gist
Feb 23, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ @Test fun `모든 유저 정보를 가져온다`() { mockMvc.get("/users/v1") { contentType = MediaType.APPLICATION_JSON header(X_AUTH_TOKEN, token) } .andDo { print() } .andExpect { status { isOk() } } .andExpect { jsonPath("$.success") { value(true) } } .andExpect { jsonPath("$.code") { value(0) } } .andExpect { jsonPath("$.message") { exists() } } .andExpect { jsonPath("$.results") { isArray() } } .andExpect { jsonPath("$.results.length()") { value(6) } } }