Package org.springframework.data.rest.webmvc.support

Examples of org.springframework.data.rest.webmvc.support.DefaultedPageable


    RequestParameters parameters = new RequestParameters("firstName", "John");
    RootResourceInformation resourceInformation = getResourceInformation(Person.class);

    ResponseEntity<Object> response = controller.executeSearch(resourceInformation, getRequest(parameters),
        "firstname", new DefaultedPageable(new PageRequest(0, 10), true), null, assembler);

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

TOP

Related Classes of org.springframework.data.rest.webmvc.support.DefaultedPageable

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.