|
15 | 15 | import com.amadeus.exceptions.ResponseException; |
16 | 16 | import com.amadeus.location.analytics.CategoryRatedAreas; |
17 | 17 | import com.amadeus.ordering.TransferOrders; |
| 18 | +import com.amadeus.ordering.transferOrders.transfers.Cancellation; |
18 | 19 | import com.amadeus.referencedata.Airlines; |
19 | 20 | import com.amadeus.referencedata.Location; |
20 | 21 | import com.amadeus.referencedata.Locations; |
|
27 | 28 | import com.amadeus.referencedata.locations.hotels.ByGeocode; |
28 | 29 | import com.amadeus.referencedata.locations.hotels.ByHotels; |
29 | 30 | import com.amadeus.referencedata.urls.CheckinLinks; |
| 31 | +import com.amadeus.resources.TransferCancellation; |
30 | 32 | import com.amadeus.safety.SafetyRatedLocations; |
31 | 33 | import com.amadeus.schedule.Flights; |
32 | 34 | import com.amadeus.shopping.Activities; |
@@ -113,6 +115,7 @@ public class NamespaceTest { |
113 | 115 | assertNotNull(client.referenceData.locations.cities); |
114 | 116 | assertNotNull(client.airline.destinations); |
115 | 117 | assertNotNull(client.ordering.tranferOrders); |
| 118 | + assertNotNull(client.ordering.transferOrder("XXX")); |
116 | 119 | } |
117 | 120 |
|
118 | 121 | /** |
@@ -815,4 +818,14 @@ public void testTransferOrders() throws ResponseException { |
815 | 818 | assertNotNull(transferOrders.post(body, params)); |
816 | 819 | } |
817 | 820 |
|
| 821 | + @Test |
| 822 | + public void testTransferCancellation() throws ResponseException { |
| 823 | + // Testing Transfer Management |
| 824 | + Params params = Params.with("foo", "bar"); |
| 825 | + Mockito.when(client.post("/v1/ordering/transfer-orders/XXX/transfers/cancellation", params, body)) |
| 826 | + .thenReturn(singleResponse); |
| 827 | + Cancellation transferCancellation = new Cancellation(client, "XXX"); |
| 828 | + assertNotNull(transferCancellation.post(body, params)); |
| 829 | + } |
| 830 | + |
818 | 831 | } |
0 commit comments