|
1 | 1 | package com.amadeus; |
2 | 2 |
|
| 3 | +import com.amadeus.ereputation.HotelSentiments; |
3 | 4 | import com.amadeus.exceptions.ResponseException; |
4 | 5 | import com.amadeus.referenceData.Airlines; |
5 | 6 | import com.amadeus.referenceData.Location; |
6 | 7 | import com.amadeus.referenceData.Locations; |
7 | 8 | import com.amadeus.referenceData.locations.Airports; |
8 | 9 | import com.amadeus.referenceData.locations.PointsOfInterest; |
9 | | -import com.amadeus.referenceData.locations.pointsOfInterest.BySquare; |
10 | 10 | import com.amadeus.referenceData.urls.CheckinLinks; |
11 | 11 | import com.amadeus.shopping.FlightDates; |
12 | 12 | import com.amadeus.shopping.FlightDestinations; |
@@ -56,6 +56,7 @@ public void testAllNamespacesExist() { |
56 | 56 | TestCase.assertNotNull(client.shopping.flightOffers.prediction); |
57 | 57 | TestCase.assertNotNull(client.shopping.hotelOffers); |
58 | 58 | TestCase.assertNotNull(client.shopping.hotelOffersByHotel); |
| 59 | + TestCase.assertNotNull(client.ereputation.hotelSentiments); |
59 | 60 | TestCase.assertNotNull(client.shopping.hotelOffer("XXX")); |
60 | 61 | } |
61 | 62 |
|
@@ -268,6 +269,14 @@ public void testGetMethods() throws ResponseException { |
268 | 269 | FlightOffersSearch flightOfferSearch = new FlightOffersSearch(client); |
269 | 270 | TestCase.assertNotNull(flightOfferSearch.get(params)); |
270 | 271 |
|
| 272 | + // Test hotel ratings |
| 273 | + Mockito.when(client.get("/v2/e-reputation/hotel-sentiments", null)) |
| 274 | + .thenReturn(multiResponse); |
| 275 | + Mockito.when(client.get("/v2/e-reputation/hotel-sentiments", params)) |
| 276 | + .thenReturn(multiResponse); |
| 277 | + HotelSentiments hotelSentiments = new HotelSentiments(client); |
| 278 | + TestCase.assertNotNull(hotelSentiments.get(params)); |
| 279 | + |
271 | 280 | } |
272 | 281 |
|
273 | 282 | @Test |
|
0 commit comments