Skip to content

Commit 05343ad

Browse files
authored
chore: Activity integrate test and example (#47)
1 parent 64cddaa commit 05343ad

28 files changed

+1244
-21
lines changed

examples/LICENSE-HEADER.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (C) ${year} Expedia, Inc.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

examples/pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<maven.compiler.target>1.8</maven.compiler.target>
3333
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3434
<xap-java-sdk.sdk.version>1.1.0</xap-java-sdk.sdk.version>
35+
<maven.licence.plugin.version>4.6</maven.licence.plugin.version>
3536
</properties>
3637

3738
<repositories>
@@ -92,6 +93,33 @@
9293
</execution>
9394
</executions>
9495
</plugin>
96+
<plugin>
97+
<groupId>com.mycila</groupId>
98+
<artifactId>license-maven-plugin</artifactId>
99+
<version>${maven.licence.plugin.version}</version>
100+
<configuration>
101+
<properties>
102+
<year>2025</year>
103+
</properties>
104+
<licenseSets>
105+
<licenseSet>
106+
<header>LICENSE-HEADER.txt</header>
107+
<includes>
108+
<include>**/*.java</include>
109+
</includes>
110+
</licenseSet>
111+
</licenseSets>
112+
</configuration>
113+
<executions>
114+
<execution>
115+
<id>add-license-header</id>
116+
<phase>validate</phase>
117+
<goals>
118+
<goal>format</goal>
119+
</goals>
120+
</execution>
121+
</executions>
122+
</plugin>
95123
</plugins>
96124
</build>
97125
</project>

examples/src/main/java/com/expediagroup/sdk/xap/examples/XapSdkDemoTestRun.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 Expedia, Inc.
2+
* Copyright (C) 2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
1616

1717
package com.expediagroup.sdk.xap.examples;
1818

19+
import com.expediagroup.sdk.xap.examples.scenarios.activity.ActivityDetailsQuickStartScenario;
20+
import com.expediagroup.sdk.xap.examples.scenarios.activity.ActivityListingsQuickStartScenario;
1921
import com.expediagroup.sdk.xap.examples.scenarios.car.CarDetailsQuickStartScenario;
2022
import com.expediagroup.sdk.xap.examples.scenarios.car.CarListingsQuickStartScenario;
2123
import com.expediagroup.sdk.xap.examples.scenarios.lodging.AvailabilityCalendarsQuickStartScenario;
@@ -70,6 +72,20 @@ public static void main(String[] args) {
7072
logger.info(
7173
"=============================== End of Car Scenarios ==============================");
7274

75+
logger.info(
76+
"============================== Running Activity Scenarios =============================");
77+
ActivityListingsQuickStartScenario activityListingsQuickStartScenario =
78+
new ActivityListingsQuickStartScenario();
79+
80+
activityListingsQuickStartScenario.run();
81+
82+
ActivityDetailsQuickStartScenario activityDetailsQuickStartScenario =
83+
new ActivityDetailsQuickStartScenario();
84+
activityDetailsQuickStartScenario.run();
85+
logger.info(
86+
"=============================== End of Activity Scenarios ==============================");
87+
88+
7389
System.exit(0);
7490
}
7591
}

examples/src/main/java/com/expediagroup/sdk/xap/examples/scenarios/XapScenario.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 Expedia, Inc.
2+
* Copyright (C) 2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)