Package org.springframework.http

Examples of org.springframework.http.RequestEntity$BodyBuilder


  }

  @Test
  @SuppressWarnings("rawtypes")
  public void testBindingExceptionForMachineClient() throws Exception {
    RequestEntity request = RequestEntity
        .get(URI.create("http://localhost:" + this.port + "/bind"))
        .accept(MediaType.APPLICATION_JSON).build();
    ResponseEntity<Map> entity = new TestRestTemplate().exchange(request, Map.class);
    String resp = entity.getBody().toString();
    assertThat(resp, containsString("Error count: 1"));
View Full Code Here

TOP

Related Classes of org.springframework.http.RequestEntity$BodyBuilder

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.