Package org.springframework.test.web.servlet

Examples of org.springframework.test.web.servlet.ResultActions


    }
  } 
 
  @Test
  public void testGettingAllPatients() throws Exception {
    ResultActions resultActions = this.mockMvc.perform(get("/patients"));
    LOG.debug("RestultActons: " + resultActions.andReturn().getResponse().getContentAsString()) ;
    resultActions.andExpect(status().isOk())
            .andExpect(content().string(notNullValue()));
 
View Full Code Here


    createdPatientId4 = patient4.getId();
  }
 
  @Test
  public void testGettingAllVisitFreqs() throws Exception {
    ResultActions resultActions = this.mockMvc.perform(get("/reporting/visitFrequency" )
        .accept(MediaType.APPLICATION_JSON));
    String result = resultActions.andReturn().getResponse().getContentAsString();
    LOG.debug("RestultActons: " + result) ;
   
    resultActions.andExpect(status().isOk());
    ApiResponse<List<VisitFrequency>> apiResponse = jsonToObject(result);

    List<VisitFrequency> vfList = apiResponse.getPayload();
    int days = 0;
    for (VisitFrequency visitFrequency : vfList) {
View Full Code Here

TOP

Related Classes of org.springframework.test.web.servlet.ResultActions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.