File tree Expand file tree Collapse file tree 5 files changed +11
-15
lines changed
tests/integration/src/test/java/com/expediagroup/sdk/xap/integrations Expand file tree Collapse file tree 5 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 5353 - name : verify integration tests
5454 working-directory : tests/integration
5555 run : |
56- mvn verify \
57- -Dcom.expediagroup.xapjavasdk.apikey="${{ secrets.API_KEY }}" \
58- -Dcom.expediagroup.xapjavasdk.apisecret="${{ secrets.API_SECRET }}" \
59- -Dcom.expediagroup.xapjavasdk.vrbokey="${{ secrets.VRBO_KEY }}" \
60- -Dcom.expediagroup.xapjavasdk.vrbosecret="${{ secrets.VRBO_SECRET }}"
56+ mvn verify
Original file line number Diff line number Diff line change 1919@ TestInstance (TestInstance .Lifecycle .PER_CLASS )
2020public abstract class XapIntegrationTests {
2121
22- protected static XapClient mockClient ;
23- protected static MockWebServer mockWebServer ;
22+ protected XapClient xapClient ;
23+ protected MockWebServer mockWebServer ;
2424
2525 @ BeforeEach
2626 void setup () {
2727 mockWebServer = new MockWebServer ();
2828
29- mockClient = XapClient .builder ()
29+ xapClient = XapClient .builder ()
3030 .key (MOCK_KEY )
3131 .secret (MOCK_SECRET )
3232 .endpoint (mockWebServer .url ("/" ).toString ())
@@ -40,6 +40,6 @@ void tearDown() throws Exception {
4040 mockWebServer .shutdown ();
4141 mockWebServer = null ;
4242 }
43- mockClient = null ;
43+ xapClient = null ;
4444 }
4545}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public void testRequest() {
4747 .setResponseCode (200 )
4848 .setBody ("{}" ));
4949
50- mockClient .execute (
50+ xapClient .execute (
5151 new GetLodgingAvailabilityCalendarsOperation (availabilityCalendarsOperationParams ));
5252 try {
5353 RecordedRequest recordedRequest = mockWebServer .takeRequest ();
@@ -89,7 +89,7 @@ public void testResponse(@GivenTextResource("GetLodgingAvailabilityCalendars.jso
8989 .setBody (mockedResponse ));
9090
9191 Response <AvailabilityCalendarResponse > response =
92- mockClient .execute (new GetLodgingAvailabilityCalendarsOperation (params ));
92+ xapClient .execute (new GetLodgingAvailabilityCalendarsOperation (params ));
9393 verifyResponse (response );
9494 }
9595
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public void testRequest() {
132132 .setResponseCode (200 )
133133 .setBody ("{}" ));
134134
135- mockClient .execute (new GetLodgingListingsOperation (getLodgingListingsOperationParams ));
135+ xapClient .execute (new GetLodgingListingsOperation (getLodgingListingsOperationParams ));
136136 try {
137137 RecordedRequest recordedRequest = mockWebServer .takeRequest ();
138138 // method
@@ -232,7 +232,7 @@ public void testResponse(@GivenTextResource("GetLodgingListings.json") String mo
232232 .setResponseCode (200 )
233233 .setBody (mockedResponse ));
234234
235- Response <HotelListingsResponse > response = mockClient .execute (
235+ Response <HotelListingsResponse > response = xapClient .execute (
236236 new GetLodgingListingsOperation (operationParams )
237237 );
238238
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public void testRequest() {
7171 .setResponseCode (200 )
7272 .setBody ("{}" ));
7373
74- mockClient .execute (new GetLodgingQuotesOperation (getLodgingQuotesOperationParams ));
74+ xapClient .execute (new GetLodgingQuotesOperation (getLodgingQuotesOperationParams ));
7575 try {
7676 RecordedRequest recordedRequest = mockWebServer .takeRequest ();
7777 // method
@@ -136,7 +136,7 @@ public void testResponse(@GivenTextResource("GetLodgingQuotes.json") String mock
136136 .setBody (mockedResponse ));
137137
138138 Response <LodgingQuotesResponse > response =
139- mockClient .execute (new GetLodgingQuotesOperation (getLodgingQuotesOperationParams ));
139+ xapClient .execute (new GetLodgingQuotesOperation (getLodgingQuotesOperationParams ));
140140 verifyResponse (response );
141141 }
142142
You can’t perform that action at this time.
0 commit comments