I'm following the following article: Introduction To Spring MVC Test Framework
I have the following code:
this.mockMvc.perform(get("/product/1"))
.andExpect(status().isOk().
.alwaysExpect(content().contentType("application/json;charset=UTF-8")));
And the class has these notes:
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@ContextConfiguration(locations = "classpath*:/spring/spring*.xml")
However, you are not finding the methods get()
, status()
and content()
, where are these methods imported from?