Examples of ProfessionalFindResponse


Examples of org.springbyexample.schema.beans.person.ProfessionalFindResponse

    @RequestMapping(value = FIND_PAGINATED_REQUEST, method = RequestMethod.GET)
    public ProfessionalFindResponse find(@PathVariable(PAGE_VAR) int page,
                                   @PathVariable(PAGE_SIZE_VAR) int pageSize) {
        logger.info("Find Professional page.  page={}  pageSize={}", page, pageSize);

        return new ProfessionalFindResponse()
                    .withCount(2)
                    .withResults(new Professional().withId(ID).withFirstName(FIRST_NAME).withLastName(LAST_NAME)
                                                   .withCompanyName(COMPANY_NAME),
                                 new Professional().withId(SECOND_ID).withFirstName(SECOND_FIRST_NAME).withLastName(SECOND_LAST_NAME)
                                                   .withCompanyName(SECOND_COMPANY_NAME));
View Full Code Here

Examples of org.springbyexample.schema.beans.person.ProfessionalFindResponse

    @Override
    @RequestMapping(value = FIND_REQUEST, method = RequestMethod.GET)
    public ProfessionalFindResponse find() {
        logger.info("Find all Professionals.");

        return new ProfessionalFindResponse()
                    .withCount(2)
                    .withResults(new Professional().withId(ID).withFirstName(FIRST_NAME).withLastName(LAST_NAME)
                                                   .withCompanyName(COMPANY_NAME),
                                 new Professional().withId(SECOND_ID).withFirstName(SECOND_FIRST_NAME).withLastName(SECOND_LAST_NAME)
                                                   .withCompanyName(SECOND_COMPANY_NAME));
View Full Code Here

Examples of org.springbyexample.schema.beans.person.ProfessionalFindResponse

    @RequestMapping(value = FIND_PAGINATED_REQUEST, method = RequestMethod.GET)
    public ProfessionalFindResponse find(@PathVariable(PAGE_VAR) int page,
                                   @PathVariable(PAGE_SIZE_VAR) int pageSize) {
        logger.info("Find Professional page.  page={}  pageSize={}", page, pageSize);

        return new ProfessionalFindResponse()
                    .withCount(2)
                    .withResults(new Professional().withId(ID).withFirstName(FIRST_NAME).withLastName(LAST_NAME)
                                                   .withCompanyName(COMPANY_NAME),
                                 new Professional().withId(SECOND_ID).withFirstName(SECOND_FIRST_NAME).withLastName(SECOND_LAST_NAME)
                                                   .withCompanyName(SECOND_COMPANY_NAME));
View Full Code Here

Examples of org.springbyexample.schema.beans.person.ProfessionalFindResponse

    @Override
    @RequestMapping(value = FIND_REQUEST, method = RequestMethod.GET)
    public ProfessionalFindResponse find() {
        logger.info("Find all Professionals.");

        return new ProfessionalFindResponse()
                    .withCount(2)
                    .withResults(new Professional().withId(ID).withFirstName(FIRST_NAME).withLastName(LAST_NAME)
                                                   .withCompanyName(COMPANY_NAME),
                                 new Professional().withId(SECOND_ID).withFirstName(SECOND_FIRST_NAME).withLastName(SECOND_LAST_NAME)
                                                   .withCompanyName(SECOND_COMPANY_NAME));
View Full Code Here

Examples of org.springbyexample.schema.beans.person.ProfessionalFindResponse

    @Test
    public void testPaginatedFind() {
        int page = 0;
        int pageSize = 2;
       
        ProfessionalFindResponse response = client.find(page, pageSize);
        assertNotNull("Response is null.", response);
       
        int expectedCount = 2;
        assertEquals("count", expectedCount, response.getCount());
       
        assertNotNull("Response results is null.", response.getResults());
        verifyRecord(response.getResults().get(0));
    }
View Full Code Here

Examples of org.springbyexample.schema.beans.person.ProfessionalFindResponse

        verifyRecord(response.getResults().get(0));
    }

    @Test
    public void testFind() {
        ProfessionalFindResponse response = client.find();
        assertNotNull("Response is null.", response);

        int expectedCount = 2;
        assertEquals("count", expectedCount, response.getCount());
       
        assertNotNull("Response results is null.", response.getResults());
        verifyRecord(response.getResults().get(0));
    }
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.