@@ -551,7 +551,7 @@ public void testSeatmaps() throws ResponseException {
551551 }
552552
553553 @ Test
554- public void testFlightOrders () throws ResponseException {
554+ public void testFlightOrdersGet () throws ResponseException {
555555 // Testing Flight Create Orders
556556 Mockito .when (client .get ("/v1/booking/flight-orders/XXX" , null ))
557557 .thenReturn (singleResponse );
@@ -711,11 +711,10 @@ public void testDestinations() throws ResponseException {
711711 assertNotNull (airlineDestinations .get (params ));
712712 assertEquals (airlineDestinations .get ().length , 2 );
713713 }
714-
715714
716715 @ Test
717- public void testPostMethods () throws ResponseException {
718- // Testing flight choice prediction
716+ public void testPrediction () throws ResponseException {
717+ // Testing Flight Choice Prediction
719718 Mockito .when (client .post ("/v2/shopping/flight-offers/prediction" , (String ) null ))
720719 .thenReturn (multiResponse );
721720 Mockito .when (client .post ("/v2/shopping/flight-offers/prediction" , body ))
@@ -724,8 +723,11 @@ public void testPostMethods() throws ResponseException {
724723 assertNotNull (flightOffersPrediction .post ());
725724 assertNotNull (flightOffersPrediction .post (body ));
726725 assertEquals (flightOffersPrediction .post ().length , 2 );
726+ }
727727
728- // Test flight offers search post
728+ @ Test
729+ public void testFlightOffers () throws ResponseException {
730+ // Testing Flight Offers Search POST
729731 Mockito .when (client .post ("/v2/shopping/flight-offers" , (String ) null ))
730732 .thenReturn (multiResponse );
731733 Mockito .when (client .post ("/v2/shopping/flight-offers" , body ))
@@ -736,8 +738,11 @@ public void testPostMethods() throws ResponseException {
736738 assertNotNull (flightOfferSearch .post ());
737739 assertNotNull (flightOfferSearch .post (body ));
738740 assertEquals (flightOfferSearch .post ().length , 2 );
741+ }
739742
740- // Test flight price
743+ @ Test
744+ public void testPricing () throws ResponseException {
745+ // Testing Flight Offers Price
741746 Mockito .when (client .post ("/v1/shopping/flight-offers/pricing" , (String ) null ))
742747 .thenReturn (singleResponse );
743748 Mockito .when (client .post ("/v1/shopping/flight-offers/pricing" , body ))
@@ -747,17 +752,23 @@ public void testPostMethods() throws ResponseException {
747752 Pricing pricing = new Pricing (client );
748753 assertNotNull (pricing .post ());
749754 assertNotNull (pricing .post (body ));
755+ }
750756
751- // Test flight create orders
757+ @ Test
758+ public void testFlightOrders () throws ResponseException {
759+ // Testing Flight Create Orders
752760 Mockito .when (client .post ("/v1/booking/flight-orders" , (String ) null ))
753761 .thenReturn (singleResponse );
754762 Mockito .when (client .post ("/v1/booking/flight-orders" , body ))
755763 .thenReturn (singleResponse );
756764 FlightOrders order = new FlightOrders (client );
757765 assertNotNull (order .post ());
758766 assertNotNull (order .post (body ));
767+ }
759768
760- // Test SeatMaps post
769+ @ Test
770+ public void testSeatmapsPost () throws ResponseException {
771+ // Testing SeatMap Display POST
761772 Mockito .when (client .post ("/v1/shopping/seatmaps" , (String ) null ))
762773 .thenReturn (multiResponse );
763774 Mockito .when (client .post ("/v1/shopping/seatmaps" , body ))
@@ -767,8 +778,11 @@ public void testPostMethods() throws ResponseException {
767778 SeatMaps seatmap = new SeatMaps (client );
768779 assertNotNull (seatmap .post ());
769780 assertNotNull (seatmap .post (body ));
781+ }
770782
771- // Test Hotel Booking post
783+ @ Test
784+ public void testHotelBookings () throws ResponseException {
785+ // Test Hotel Booking POST
772786 Mockito .when (client .post ("/v1/booking/hotel-bookings" , (String ) null ))
773787 .thenReturn (multiResponse );
774788 Mockito .when (client .post ("/v1/booking/hotel-bookings" , body ))
@@ -778,8 +792,11 @@ public void testPostMethods() throws ResponseException {
778792 HotelBookings hotel = new HotelBookings (client );
779793 assertNotNull (hotel .post ());
780794 assertNotNull (hotel .post (body ));
795+ }
781796
782- // Test Trip Parser post
797+ @ Test
798+ public void testTripParser () throws ResponseException {
799+ // Test Trip Parser
783800 Mockito .when (client .post ("/v3/travel/trip-parser" , (String ) null ))
784801 .thenReturn (singleResponse );
785802 Mockito .when (client .post ("/v3/travel/trip-parser" , body ))
@@ -789,8 +806,11 @@ public void testPostMethods() throws ResponseException {
789806 TripParser tripParser = new TripParser (client );
790807 assertNotNull (tripParser .post ());
791808 assertNotNull (tripParser .post (body ));
809+ }
792810
793- // Test flight availabilities search post
811+ @ Test
812+ public void testFlightAvailabilities () throws ResponseException {
813+ // Testing Flight Availabilities Search
794814 Mockito .when (client .post ("/v1/shopping/availability/flight-availabilities" , (String ) null ))
795815 .thenReturn (multiResponse );
796816 Mockito .when (client .post ("/v1/shopping/availability/flight-availabilities" , body ))
@@ -801,8 +821,11 @@ public void testPostMethods() throws ResponseException {
801821 assertNotNull (flightAvailabilities .post ());
802822 assertNotNull (flightAvailabilities .post (body ));
803823 assertEquals (flightAvailabilities .post ().length , 2 );
824+ }
804825
805- // Test branded fares upsell post
826+ @ Test
827+ public void testUpselling () throws ResponseException {
828+ // Testing Branded Fares Upsell
806829 Mockito .when (client .post ("/v1/shopping/flight-offers/upselling" , (String ) null ))
807830 .thenReturn (multiResponse );
808831 Mockito .when (client .post ("/v1/shopping/flight-offers/upselling" , body ))
@@ -814,8 +837,8 @@ public void testPostMethods() throws ResponseException {
814837 }
815838
816839 @ 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
819842 Mockito .when (client .delete ("/v1/booking/flight-orders/XXX" , null ))
820843 .thenReturn (singleResponse );
821844 Mockito .when (client .delete ("/v1/booking/flight-orders/XXX" , params ))
0 commit comments