A collection of example applications demonstrating the features of the DeltaSpike project.
-
Switch to the directory of a particular example
-
Build the project
mvn clean package
-
Deploy to a Java EE 6+ container, as described in the following sections
-
Set the
JBOSS_HOME
environment variable to the path to a JBoss EAP / WildFly installation -
Start the container
$JBOSS_HOME/bin/standalone.sh &
-
Deploy the application
$JBOSS_HOME/bin/jboss-cli.sh "connect, deploy path/to/the.war"
Some of the examples provide Arquillian functional tests. They are located under the "functional-tests" directory of an example.
-
To run these tests, you must first build the example
-
Navigate to the
functional-tests
directory of the example -
Run the tests, optionally adding
-Dremote
to the following command, if the server is already runningmvn clean verify
To run the functional tests of all examples at once, run
mvn clean verify -Pftest
Use the property "jacoco"
mvn clean package -Pftest -Pjacoco