Skip to content

Commit 60817df

Browse files
committed
remove references at unit tests
1 parent efd8db4 commit 60817df

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

src/test/java/com/amadeus/NamespaceTest.java

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import com.amadeus.referencedata.locations.hotels.ByHotels;
2929
import com.amadeus.referencedata.urls.CheckinLinks;
3030
import com.amadeus.resources.TransferCancellation;
31-
import com.amadeus.safety.SafetyRatedLocations;
3231
import com.amadeus.schedule.Flights;
3332
import com.amadeus.shopping.Activities;
3433
import com.amadeus.shopping.FlightDates;
@@ -240,53 +239,6 @@ public void testRecommendedLocations() throws ResponseException {
240239
assertEquals(destinations.get().length, 2);
241240
}
242241

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-
290242
@Test
291243
public void testActivities() throws ResponseException {
292244
// Testing Tours and Activities

0 commit comments

Comments
 (0)