File tree Expand file tree Collapse file tree 5 files changed +22
-11
lines changed
travel/analytics/airTraffic Expand file tree Collapse file tree 5 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public class Analytics {
2525 protected Analytics () {}
2626
2727 private @ Getter Flights flights ;
28- private @ Getter Travellers travellers ;
28+ private @ Getter Travelers travelers ;
2929
3030 /**
3131 * An AirTraffic-related object as returned by the AirTraffic API.
@@ -43,8 +43,8 @@ protected Flights() {}
4343 * @see Traveled#get()
4444 */
4545 @ ToString
46- public class Travellers {
47- protected Travellers () {}
46+ public class Travelers {
47+ protected Travelers () {}
4848
4949 private @ Getter Double score ;
5050 }
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ private class Analytics {
7171 protected Analytics () {}
7272
7373 private @ Getter Flights flights ;
74- private @ Getter Travellers travellers ;
74+ private @ Getter Travelers travelers ;
7575
7676 /**
7777 * An Location-related object as returned by the Locaion API.
@@ -89,8 +89,8 @@ protected Flights() {}
8989 * @see com.amadeus.referenceData.Location#get()
9090 */
9191 @ ToString
92- private class Travellers {
93- protected Travellers () {}
92+ private class Travelers {
93+ protected Travelers () {}
9494
9595 private @ Getter Double score ;
9696 }
Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ protected Period() {}
2323 public class Analytics {
2424 protected Analytics () {}
2525
26- private @ Getter Travellers travellers ;
26+ private @ Getter Travelers travelers ;
2727
2828 /**
2929 * An Period-related object as returned by the BusiestPeriod API.
3030 * @see Traveled#get()
3131 */
3232 @ ToString
33- public class Travellers {
34- protected Travellers () {}
33+ public class Travelers {
34+ protected Travelers () {}
3535
3636 private @ Getter Double score ;
3737 }
Original file line number Diff line number Diff line change 2424 */
2525public class BusiestPeriod {
2626 private Amadeus client ;
27- public static String ARRIVING = "ARRIVING" ;
28- public static String DEPARTING = "DEPARTING" ;
27+ public static final String ARRIVING = "ARRIVING" ;
28+ public static final String DEPARTING = "DEPARTING" ;
2929
3030 /**
3131 * Constructor.
Original file line number Diff line number Diff line change 1818import com .amadeus .shopping .hotel .Offer ;
1919import com .amadeus .travel .analytics .FareSearches ;
2020import com .amadeus .travel .analytics .airTraffic .Booked ;
21+ import com .amadeus .travel .analytics .airTraffic .BusiestPeriod ;
2122import com .amadeus .travel .analytics .airTraffic .Traveled ;
2223import com .google .gson .JsonArray ;
2324import com .google .gson .JsonObject ;
@@ -139,6 +140,16 @@ public class NamespaceTest {
139140 assertNotNull (booked .get (params ));
140141 assertEquals (booked .get ().length , 2 );
141142
143+ // Testing busiest traveling period
144+ when (client .get ("/v1/travel/analytics/air-traffic/busiest-period" , null ))
145+ .thenReturn (multiResponse );
146+ when (client .get ("/v1/travel/analytics/air-traffic/busiest-period" , params ))
147+ .thenReturn (multiResponse );
148+ BusiestPeriod busiestPeriod = new BusiestPeriod (client );
149+ assertNotNull (busiestPeriod .get ());
150+ assertNotNull (busiestPeriod .get (params ));
151+ assertEquals (busiestPeriod .get ().length , 2 );
152+
142153 // Testing fare search stats
143154 when (client .get ("/v1/travel/analytics/fare-searches" , null ))
144155 .thenReturn (multiResponse );
You can’t perform that action at this time.
0 commit comments