Examples of HasSelfLink


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
Copyright © 2018 www.massapi.com. 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.