Code example for MockMvc

Methods: perform

0
    RequestBuilder rb = MockMvcRequestBuilders.get(dataset).servletPath(dataset) 
            .param("longitude", "-105.203").param("latitude", "40.019") 
            .param("accept", "netcdf4") 
            .param("var", "ICE"); 
 
    this.mockMvc.perform(rb) 
            .andExpect(MockMvcResultMatchers.status().is(200)); // i guess its ok  LOOK 
  } 
 
  @Test 
  public void invalidTimeRange() throws Exception { 
    RequestBuilder rb = MockMvcRequestBuilders.get(dataset).servletPath(dataset) 
            .param("accept", "netcdf") 
            .param("north", "43.0") 
            .param("south", "38.0") 
            .param("west", "-107.0") 
            .param("east", "-103.0") 
            .param("time_start", "2006-03-02T00:00:00Z") 
            .param("time_end", "2006-03-28T00:00:00Z") 
            .param("var", "ICE, PRECIP_amt"); 
Connect your IDE to all the code out there  Get Codota for Java