Over engineered "Hello World" application that uses:
- Java 21
- Jakarta EE 10
- Wildfly 31
- Arquillian and jUnit 4
The application is a simple hello world / echo HTTP endpoint, which context root deployed to Wildfly
is by default at http://localhost:8080/hello-jakartaee.
The following endpoints are defined in /src/main/java/HelloResource.java interface:
/api/hello/ping
is a health-check dummy endpoint/api/hello/say/{name}
is the hello / echo endpoint that will reply back a greetings along the provided parameter{name}
Currently there's a single text/plain
implementation of these endpoints.
mvn clean install verify -Parq-managed
This will:
- Cleanup any previous artifacts from
/target/
folder - Compile the application as specified in pom.xml
- Execute unit tests
- Package the application into a
.war
file (also in pom.xml ) - Startup your local Wildfly instance, specified in /src/test/resources/arquillian.xml
- Deploy the application to Wildfly
- Execute integration tests
- Undeploy the application from Wildfly
- Stop Wildfly
mvn clean install verify -Parq-remote
This will:
- Cleanup any previous artifacts from
/target/
folder - Compile the application as specified in pom.xml
- Execute unit tests
- Package the application into a
.war
file (also in pom.xml ) - Deploy the application to the remote Wildfly instance, specified in /src/test/resources/arquillian.xml
- Execute integration tests
- Undeploy the application from the remove Wildfly
TODO - See test code