use of org.springframework.test.web.client.MockMvcClientHttpRequestFactory in project spring-framework by spring-projects.
the class MockMvcClientHttpRequestFactoryTests method setup.
@Before
public void setup() {
MockMvc mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).alwaysExpect(status().isOk()).build();
this.restTemplate = new RestTemplate(new MockMvcClientHttpRequestFactory(mockMvc));
}
Aggregations