Skip to content

Commit f8e2912

Browse files
committed
update client name
1 parent 40384bc commit f8e2912

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

.github/workflows/verify-examples-and-tests.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,4 @@ jobs:
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

tests/integration/src/test/java/com/expediagroup/sdk/xap/integrations/common/XapIntegrationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
2020
public 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
}

tests/integration/src/test/java/com/expediagroup/sdk/xap/integrations/lodging/AvailabilityCalendarsIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/integration/src/test/java/com/expediagroup/sdk/xap/integrations/lodging/ListingsIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/integration/src/test/java/com/expediagroup/sdk/xap/integrations/lodging/QuotesIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)