|
28 | 28 | import com.amadeus.referencedata.locations.hotels.ByHotels; |
29 | 29 | import com.amadeus.referencedata.urls.CheckinLinks; |
30 | 30 | import com.amadeus.resources.TransferCancellation; |
31 | | -import com.amadeus.safety.SafetyRatedLocations; |
32 | 31 | import com.amadeus.schedule.Flights; |
33 | 32 | import com.amadeus.shopping.Activities; |
34 | 33 | import com.amadeus.shopping.FlightDates; |
@@ -240,53 +239,6 @@ public void testRecommendedLocations() throws ResponseException { |
240 | 239 | assertEquals(destinations.get().length, 2); |
241 | 240 | } |
242 | 241 |
|
243 | | - @Test |
244 | | - public void testSafetyRatedLocations() throws ResponseException { |
245 | | - // Testing Safe Place |
246 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations", null)) |
247 | | - .thenReturn(multiResponse); |
248 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations", params)) |
249 | | - .thenReturn(multiResponse); |
250 | | - SafetyRatedLocations safetyCoords = new SafetyRatedLocations(client); |
251 | | - assertNotNull(safetyCoords.get()); |
252 | | - assertNotNull(safetyCoords.get(params)); |
253 | | - assertEquals(safetyCoords.get().length, 2); |
254 | | - } |
255 | | - |
256 | | - @Test |
257 | | - public void testSafetyRatedLocationsBySquare() throws ResponseException { |
258 | | - // Testing Safe Place by square |
259 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations", null)) |
260 | | - .thenReturn(multiResponse); |
261 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations", params)) |
262 | | - .thenReturn(multiResponse); |
263 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations/by-square", null)) |
264 | | - .thenReturn(multiResponse); |
265 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations/by-square", params)) |
266 | | - .thenReturn(multiResponse); |
267 | | - SafetyRatedLocations safetySquare = new SafetyRatedLocations(client); |
268 | | - assertNotNull(safetySquare.get()); |
269 | | - assertNotNull(safetySquare.get(params)); |
270 | | - assertEquals(safetySquare.get().length, 2); |
271 | | - } |
272 | | - |
273 | | - @Test |
274 | | - public void testSafetyRatedLocationsById() throws ResponseException { |
275 | | - // Testing Safe Place by Id |
276 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations", null)) |
277 | | - .thenReturn(multiResponse); |
278 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations", params)) |
279 | | - .thenReturn(multiResponse); |
280 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations/XXX", null)) |
281 | | - .thenReturn(multiResponse); |
282 | | - Mockito.when(client.get("/v1/safety/safety-rated-locations/XXX", params)) |
283 | | - .thenReturn(multiResponse); |
284 | | - SafetyRatedLocations safetyById = new SafetyRatedLocations(client); |
285 | | - assertNotNull(safetyById.get()); |
286 | | - assertNotNull(safetyById.get(params)); |
287 | | - assertEquals(safetyById.get().length, 2); |
288 | | - } |
289 | | - |
290 | 242 | @Test |
291 | 243 | public void testActivities() throws ResponseException { |
292 | 244 | // Testing Tours and Activities |
|
0 commit comments