Skip to content

Commit 52bfbe0

Browse files
authored
Merge pull request #54 from 4PointSolutions/20251022_SampleProjects_TestContainers
Modify sample apps to support real AEM instances (including Test Containers images)
2 parents adadcd0 + b26a079 commit 52bfbe0

File tree

64 files changed

+1488
-697
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1488
-697
lines changed

.github/workflows/spring-sample-web-app-ci.yml renamed to .github/workflows/spring-sample-web-apps-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
3434
settings-path: ${{ github.workspace }} # location for the settings.xml file
3535

36-
- name: Build Sample Web App with Maven
37-
run: mvn -B install -s $GITHUB_WORKSPACE/settings.xml --file spring/fluentforms-sample-web-app
36+
- name: Build Sample Jersey Web App with Maven
37+
run: mvn -B install -s $GITHUB_WORKSPACE/settings.xml --file spring/fluentforms-sample-web-jersey-app
3838
env:
3939
GITHUB_TOKEN: ${{ github.token }}
4040

41-
- name: Build Sample Web App with Maven
41+
- name: Build Sample Web MVC App with Maven
4242
run: mvn -B install -s $GITHUB_WORKSPACE/settings.xml --file spring/fluentforms-sample-webmvc-app
4343
env:
4444
GITHUB_TOKEN: ${{ github.token }}

spring/fluentforms-sample-web-app/src/test/java/com/_4point/aem/fluentforms/sampleapp/resources/FluentFormsResourcesTest.java

Lines changed: 0 additions & 312 deletions
This file was deleted.
File renamed without changes.

spring/fluentforms-sample-web-app/application.properties renamed to spring/fluentforms-sample-web-jersey-app/application.properties

File renamed without changes.

spring/fluentforms-sample-web-app/pom.xml renamed to spring/fluentforms-sample-web-jersey-app/pom.xml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
<artifactId>fluentforms-sample-web-app</artifactId>
1212
<version>0.0.4-SNAPSHOT</version>
1313
<name>Fluent Forms Spring Boot Sample Web Application</name>
14-
<description>Sample Spring Boot Web Application that utilizes the Fluent Forms Spring Boot Starters</description>
14+
<description>Sample Spring Boot Web Application (using Jersey JAX-RS) that utilizes the Fluent Forms Spring Boot Starters</description>
1515

1616
<properties>
1717
<java.version>17</java.version>
18-
<wiremock.version>4.0.0-beta.15</wiremock.version>
18+
<wiremock.version>3.13.1</wiremock.version>
19+
<wiremock-spring-boot.version>3.10.6</wiremock-spring-boot.version>
1920
<htmlunit.version>4.16.0</htmlunit.version>
2021
<fluentforms.spring.boot.starter.version>0.0.4-SNAPSHOT</fluentforms.spring.boot.starter.version>
2122
<fp.hamcrest.matchers.version>0.0.4-SNAPSHOT</fp.hamcrest.matchers.version>
@@ -82,6 +83,12 @@
8283
<version>${wiremock.version}</version>
8384
<scope>test</scope>
8485
</dependency>
86+
<dependency>
87+
<groupId>org.wiremock.integrations</groupId>
88+
<artifactId>wiremock-spring-boot</artifactId>
89+
<version>${wiremock-spring-boot.version}</version>
90+
<scope>test</scope>
91+
</dependency>
8592
<dependency>
8693
<groupId>com.4point.testing</groupId>
8794
<artifactId>4point-hamcrest-matchers</artifactId>
@@ -93,6 +100,16 @@
93100
<artifactId>htmlunit</artifactId>
94101
<scope>test</scope>
95102
</dependency>
103+
<dependency>
104+
<groupId>org.testcontainers</groupId>
105+
<artifactId>junit-jupiter</artifactId>
106+
<scope>test</scope>
107+
</dependency>
108+
<dependency>
109+
<groupId>org.awaitility</groupId>
110+
<artifactId>awaitility</artifactId>
111+
<scope>test</scope>
112+
</dependency>
96113
</dependencies>
97114

98115
<build>

spring/fluentforms-sample-web-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/FluentFormsSpringApplication.java renamed to spring/fluentforms-sample-web-jersey-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/FluentFormsSpringApplication.java

File renamed without changes.

spring/fluentforms-sample-web-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/GitConfig.java renamed to spring/fluentforms-sample-web-jersey-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/GitConfig.java

File renamed without changes.

spring/fluentforms-sample-web-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/JerseyConfig.java renamed to spring/fluentforms-sample-web-jersey-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/JerseyConfig.java

File renamed without changes.

spring/fluentforms-sample-web-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/domain/DataService.java renamed to spring/fluentforms-sample-web-jersey-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/domain/DataService.java

File renamed without changes.

spring/fluentforms-sample-web-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/ports/InMemoryDataService.java renamed to spring/fluentforms-sample-web-jersey-app/src/main/java/com/_4point/aem/fluentforms/sampleapp/ports/InMemoryDataService.java

File renamed without changes.

0 commit comments

Comments
 (0)