File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
backend/src/test/java/com/ai/lawyer/domain/poll/controller Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,8 @@ void t10() throws Exception {
148148 Mockito .when (pollService .getPoll (Mockito .anyLong ())).thenReturn (responseDto );
149149 mockMvc .perform (get ("/api/polls/1" ))
150150 .andExpect (status ().isOk ())
151- .andExpect (org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ("$.pollId" ).value (1L ))
152- .andExpect (org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ("$.voteTitle" ).value ("테스트 투표" ));
151+ .andExpect (org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ("$.result. pollId" ).value (1L ))
152+ .andExpect (org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ("$.result. voteTitle" ).value ("테스트 투표" ));
153153 }
154154
155155 @ Test
@@ -162,7 +162,7 @@ void t11() throws Exception {
162162 org .springframework .test .web .servlet .request .MockMvcRequestBuilders .post ("/api/polls/1/vote" )
163163 .param ("pollItemsId" , "1" )
164164 ).andExpect (status ().isOk ())
165- .andExpect (org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ("$.pollId" ).value (1L ))
166- .andExpect (org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ("$.memberId" ).value (1L ));
165+ .andExpect (org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ("$.result. pollId" ).value (1L ))
166+ .andExpect (org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ("$.result. memberId" ).value (1L ));
167167 }
168168}
You can’t perform that action at this time.
0 commit comments