@@ -551,7 +551,7 @@ public void testSeatmaps() throws ResponseException {
551
551
}
552
552
553
553
@ Test
554
- public void testFlightOrders () throws ResponseException {
554
+ public void testFlightOrdersGet () throws ResponseException {
555
555
// Testing Flight Create Orders
556
556
Mockito .when (client .get ("/v1/booking/flight-orders/XXX" , null ))
557
557
.thenReturn (singleResponse );
@@ -711,11 +711,10 @@ public void testDestinations() throws ResponseException {
711
711
assertNotNull (airlineDestinations .get (params ));
712
712
assertEquals (airlineDestinations .get ().length , 2 );
713
713
}
714
-
715
714
716
715
@ Test
717
- public void testPostMethods () throws ResponseException {
718
- // Testing flight choice prediction
716
+ public void testPrediction () throws ResponseException {
717
+ // Testing Flight Choice Prediction
719
718
Mockito .when (client .post ("/v2/shopping/flight-offers/prediction" , (String ) null ))
720
719
.thenReturn (multiResponse );
721
720
Mockito .when (client .post ("/v2/shopping/flight-offers/prediction" , body ))
@@ -724,8 +723,11 @@ public void testPostMethods() throws ResponseException {
724
723
assertNotNull (flightOffersPrediction .post ());
725
724
assertNotNull (flightOffersPrediction .post (body ));
726
725
assertEquals (flightOffersPrediction .post ().length , 2 );
726
+ }
727
727
728
- // Test flight offers search post
728
+ @ Test
729
+ public void testFlightOffers () throws ResponseException {
730
+ // Testing Flight Offers Search POST
729
731
Mockito .when (client .post ("/v2/shopping/flight-offers" , (String ) null ))
730
732
.thenReturn (multiResponse );
731
733
Mockito .when (client .post ("/v2/shopping/flight-offers" , body ))
@@ -736,8 +738,11 @@ public void testPostMethods() throws ResponseException {
736
738
assertNotNull (flightOfferSearch .post ());
737
739
assertNotNull (flightOfferSearch .post (body ));
738
740
assertEquals (flightOfferSearch .post ().length , 2 );
741
+ }
739
742
740
- // Test flight price
743
+ @ Test
744
+ public void testPricing () throws ResponseException {
745
+ // Testing Flight Offers Price
741
746
Mockito .when (client .post ("/v1/shopping/flight-offers/pricing" , (String ) null ))
742
747
.thenReturn (singleResponse );
743
748
Mockito .when (client .post ("/v1/shopping/flight-offers/pricing" , body ))
@@ -747,17 +752,23 @@ public void testPostMethods() throws ResponseException {
747
752
Pricing pricing = new Pricing (client );
748
753
assertNotNull (pricing .post ());
749
754
assertNotNull (pricing .post (body ));
755
+ }
750
756
751
- // Test flight create orders
757
+ @ Test
758
+ public void testFlightOrders () throws ResponseException {
759
+ // Testing Flight Create Orders
752
760
Mockito .when (client .post ("/v1/booking/flight-orders" , (String ) null ))
753
761
.thenReturn (singleResponse );
754
762
Mockito .when (client .post ("/v1/booking/flight-orders" , body ))
755
763
.thenReturn (singleResponse );
756
764
FlightOrders order = new FlightOrders (client );
757
765
assertNotNull (order .post ());
758
766
assertNotNull (order .post (body ));
767
+ }
759
768
760
- // Test SeatMaps post
769
+ @ Test
770
+ public void testSeatmapsPost () throws ResponseException {
771
+ // Testing SeatMap Display POST
761
772
Mockito .when (client .post ("/v1/shopping/seatmaps" , (String ) null ))
762
773
.thenReturn (multiResponse );
763
774
Mockito .when (client .post ("/v1/shopping/seatmaps" , body ))
@@ -767,8 +778,11 @@ public void testPostMethods() throws ResponseException {
767
778
SeatMaps seatmap = new SeatMaps (client );
768
779
assertNotNull (seatmap .post ());
769
780
assertNotNull (seatmap .post (body ));
781
+ }
770
782
771
- // Test Hotel Booking post
783
+ @ Test
784
+ public void testHotelBookings () throws ResponseException {
785
+ // Test Hotel Booking POST
772
786
Mockito .when (client .post ("/v1/booking/hotel-bookings" , (String ) null ))
773
787
.thenReturn (multiResponse );
774
788
Mockito .when (client .post ("/v1/booking/hotel-bookings" , body ))
@@ -778,8 +792,11 @@ public void testPostMethods() throws ResponseException {
778
792
HotelBookings hotel = new HotelBookings (client );
779
793
assertNotNull (hotel .post ());
780
794
assertNotNull (hotel .post (body ));
795
+ }
781
796
782
- // Test Trip Parser post
797
+ @ Test
798
+ public void testTripParser () throws ResponseException {
799
+ // Test Trip Parser
783
800
Mockito .when (client .post ("/v3/travel/trip-parser" , (String ) null ))
784
801
.thenReturn (singleResponse );
785
802
Mockito .when (client .post ("/v3/travel/trip-parser" , body ))
@@ -789,8 +806,11 @@ public void testPostMethods() throws ResponseException {
789
806
TripParser tripParser = new TripParser (client );
790
807
assertNotNull (tripParser .post ());
791
808
assertNotNull (tripParser .post (body ));
809
+ }
792
810
793
- // Test flight availabilities search post
811
+ @ Test
812
+ public void testFlightAvailabilities () throws ResponseException {
813
+ // Testing Flight Availabilities Search
794
814
Mockito .when (client .post ("/v1/shopping/availability/flight-availabilities" , (String ) null ))
795
815
.thenReturn (multiResponse );
796
816
Mockito .when (client .post ("/v1/shopping/availability/flight-availabilities" , body ))
@@ -801,8 +821,11 @@ public void testPostMethods() throws ResponseException {
801
821
assertNotNull (flightAvailabilities .post ());
802
822
assertNotNull (flightAvailabilities .post (body ));
803
823
assertEquals (flightAvailabilities .post ().length , 2 );
824
+ }
804
825
805
- // Test branded fares upsell post
826
+ @ Test
827
+ public void testUpselling () throws ResponseException {
828
+ // Testing Branded Fares Upsell
806
829
Mockito .when (client .post ("/v1/shopping/flight-offers/upselling" , (String ) null ))
807
830
.thenReturn (multiResponse );
808
831
Mockito .when (client .post ("/v1/shopping/flight-offers/upselling" , body ))
@@ -814,8 +837,8 @@ public void testPostMethods() throws ResponseException {
814
837
}
815
838
816
839
@ Test
817
- public void testDeleteMethods () throws ResponseException {
818
- // Test deleting a specific offer
840
+ public void testFlightOrdersbyId () throws ResponseException {
841
+ // Testing Flight Order Management DELETE
819
842
Mockito .when (client .delete ("/v1/booking/flight-orders/XXX" , null ))
820
843
.thenReturn (singleResponse );
821
844
Mockito .when (client .delete ("/v1/booking/flight-orders/XXX" , params ))
0 commit comments