Package org.springframework.data.rest.webmvc.jpa

Examples of org.springframework.data.rest.webmvc.jpa.Address


   * @see DATAREST-217
   */
  @Test(expected = HttpRequestMethodNotSupportedException.class)
  public void returnsNotFoundForListingEntitiesIfFindAllNotExported() throws Exception {

    repository.save(new Address());

    RootResourceInformation request = getResourceInformation(Address.class);
    controller.getCollectionResource(request, null, null, null);
  }
View Full Code Here


   * @see DATAREST-330
   */
  @Test
  public void exposesHeadForItemResourceIfExported() throws Exception {

    Address address = repository.save(new Address());

    ResponseEntity<?> entity = controller.headForItemResource(getResourceInformation(Address.class), address.id);
    assertThat(entity.getStatusCode(), is(HttpStatus.NO_CONTENT));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.rest.webmvc.jpa.Address

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.