Code example for MockMvc

Methods: perform

0
	// 
	// private helpers 
	// 
 
	private void performNoOpRequestToSetupShadow(MockMvc mvc) throws Exception { 
		mvc.perform( 
				patch(RESOURCE_PATH) 
				.content("[]") 
				.accept(JSON_PATCH) 
				.contentType(JSON_PATCH)) 
			.andExpect(content().string("[]")) 
			.andExpect(content().contentType(JSON_PATCH)) 
			.andExpect(status().isOk()); 
	} 
	 
	private String resource(String name) throws IOException { 
		ClassPathResource resource = new ClassPathResource("/org/springframework/sync/" + name + ".json"); 
		BufferedReader reader = new BufferedReader(new InputStreamReader(resource.getInputStream())); 
		StringBuilder builder = new StringBuilder(); 
		while(reader.ready()) {