Code example for MockMvc

Methods: perform

0
	@Test 
	public void getDatasetBoundaries() throws Exception { 
		RequestBuilder rb = MockMvcRequestBuilders.get(path).servletPath(path) 
				.param("accept", "json"); 
		 
		this.mockMvc.perform( rb ).andExpect(MockMvcResultMatchers.status().isOk()); 
	} 
	 
	@Test 
	public void defaultContentType() throws Exception { 
		 
		RequestBuilder rb = MockMvcRequestBuilders.get(path).servletPath(path); 
		this.mockMvc.perform(rb) 
            .andExpect(MockMvcResultMatchers.header().string(ContentType.HEADER, SupportedFormat.WKT.getResponseContentType() ) ); 
	} 
	 
	@Test 
	public void jsonResponseHasContentType() throws Exception{ 
		 
		RequestBuilder rb =MockMvcRequestBuilders.get(path).servletPath(path)