Package org.springframework.data.rest.webmvc.ResourceTester

Examples of org.springframework.data.rest.webmvc.ResourceTester.HasSelfLink


    ResourceTester tester = ResourceTester.of(response.getBody());
    PagedResources<Object> pagedResources = tester.assertIsPage();
    assertThat(pagedResources.getContent().size(), is(1));

    ResourceMetadata metadata = getMetadata(Person.class);
    tester.withContentResource(new HasSelfLink(BASE.slash(metadata.getPath()).slash("{id}")));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.rest.webmvc.ResourceTester.HasSelfLink

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.