Examples of HotelListResponse


Examples of com.ean.wsapi.hotel.v3.HotelListResponse

        calendar.add(Calendar.DATE, 1);
        final Date afterTomorrow = calendar.getTime();

        final DateFormat format = new SimpleDateFormat("MM/dd/YYYY");

        final HotelListResponse response =
                Expedia.getHotelList()
                        .locale(LocaleType.EN_US)
                        .currency("USD")
                        .customer(uuid, uuid, uuid)
                        .dates(
                                format.format(tomorrow),
                                format.format(afterTomorrow))
                        .room(1)
                        .search("Kiev", null, null)
                        .numberOfResults(20)
                        .include(false, false)
                        .call();

        assertThat("Customer session IDs should be the same.",
                response.getCustomerSessionId(), is(equalTo(uuid)));
        assertThat("Hotel list should exists.",
                response.getHotelList(), is(notNullValue()));
        assertThat("Hotel summary should exists.",
                response.getHotelList().getHotelSummary().size(),
                is(greaterThan(5)));
    }
View Full Code Here

Examples of com.ean.wsapi.hotel.v3.HotelListResponse

        calendar.add(Calendar.DATE, 1);
        final Date afterTomorrow = calendar.getTime();

        final DateFormat format = new SimpleDateFormat("MM/dd/YYYY");

        final HotelListResponse response =
                Expedia.getHotelList()
                        .locale(LocaleType.EN_US)
                        .currency("USD")
                        .customer(uuid, uuid, uuid)
                        .dates(
                                format.format(tomorrow),
                                format.format(afterTomorrow))
                        .room(1)
                        .searchByDestination("Kiev,UA")
                        .numberOfResults(20)
                        .include(false, false)
                        .call();

        assertThat("Customer session IDs should be the same.",
                response.getCustomerSessionId(), is(equalTo(uuid)));
        assertThat("Hotel list should exists.",
                response.getHotelList(), is(notNullValue()));
        assertThat("Hotel summary should exists.",
                response.getHotelList().getHotelSummary().size(),
                is(greaterThan(5)));
    }
View Full Code Here

Examples of com.ean.wsapi.hotel.v3.HotelListResponse

        calendar.add(Calendar.DATE, 1);
        final Date afterTomorrow = calendar.getTime();

        final DateFormat format = new SimpleDateFormat("MM/dd/YYYY");

        final HotelListResponse response =
                Expedia.getHotelList()
                        .locale(LocaleType.EN_US)
                        .currency("USD")
                        .customer(uuid, uuid, uuid)
                        .dates(
                                format.format(tomorrow),
                                format.format(afterTomorrow))
                        .room(1)
                        .searchById("47CC53D2-98A6-486B-8106-8783749CA665")
                        .numberOfResults(20)
                        .include(false, false)
                        .call();

        assertThat("Customer session IDs should be the same.",
                response.getCustomerSessionId(), is(equalTo(uuid)));
        assertThat("Hotel list should exists.",
                response.getHotelList(), is(notNullValue()));
        assertThat("Hotel summary should exists.",
                response.getHotelList().getHotelSummary().size(),
                is(greaterThan(5)));
    }
View Full Code Here

Examples of com.ean.wsapi.hotel.v3.HotelListResponse

        calendar.add(Calendar.DATE, 1);
        final Date afterTomorrow = calendar.getTime();

        final DateFormat format = new SimpleDateFormat("MM/dd/YYYY");

        final HotelListResponse response =
                Expedia.getHotelList()
                        .locale(LocaleType.EN_US)
                        .currency("USD")
                        .customer(uuid, uuid, uuid)
                        .dates(
                                format.format(tomorrow),
                                format.format(afterTomorrow))
                        .room(1)
                        .searchByHotelIdList(152560, 127092)
                        .numberOfResults(20)
                        .include(false, false)
                        .call();

        assertThat("Customer session IDs should be the same.",
                response.getCustomerSessionId(), is(equalTo(uuid)));
        assertThat("Hotel list should exists.",
                response.getHotelList(), is(notNullValue()));
        assertThat("Hotel summary should exists.",
                response.getHotelList().getHotelSummary().size(),
                is(equalTo(2)));
    }
View Full Code Here

Examples of com.ean.wsapi.hotel.v3.HotelListResponse

        calendar.add(Calendar.DATE, 1);
        final Date afterTomorrow = calendar.getTime();

        final DateFormat format = new SimpleDateFormat("MM/dd/YYYY");

        final HotelListResponse response =
                Expedia.getHotelList()
                        .locale(LocaleType.EN_US)
                        .currency("USD")
                        .customer(uuid, uuid, uuid)
                        .dates(
                                format.format(tomorrow),
                                format.format(afterTomorrow))
                        .room(1)
                        .searchByArea(
                                47.613247f,
                                -122.19644f,
                                5, SearchRadiusUnitType.KM,
                                SortType.NO_SORT
                        )
                        .numberOfResults(20)
                        .include(false, false)
                        .call();

        assertThat("Customer session IDs should be the same.",
                response.getCustomerSessionId(), is(equalTo(uuid)));
        assertThat("Hotel list should exists.",
                response.getHotelList(), is(notNullValue()));
        assertThat("Hotel summary should exists.",
                response.getHotelList().getHotelSummary().size(),
                is(greaterThan(5)));
    }
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.