Q&A
get() static 메서드 import할때
저는 MockHttpServletRequestBuilder builder = MockMvcRequestBuilders . get ( "/hello" ); mockMvc . perform ( builder ) . andExpect ( status (). isOk ()) . andExpect ( content (). string ( "hello spring" )) . andDo ( print ()); 이런 식으로 해결을 했습니다. 혹시 저랑 같은 현상을 겪으시는 분들을 위해 올립니다.
- Likes
- 0
- Comments
- 8
- Viewcount
- 2732

