Clone this repository
see pom.xml
Note: test.serverType and test.endpoint default values are onprem and http://localhost:8080. These can be modified in AppConfigBase.java lines 43 and 44.
Running the App code:
mvn compile exec:java -Dexec.mainClass="com.example.App" -Dtest.serverType=onprem -Dtest.endpoint=http://localhost:8080 Running the test code:
mvn test -Dtest.serverType=onprem -Dtest.endpoint=http://localhost:8080Running the App code directly using java command.
mvn clean package -Dmaven.test.skip
CP=`mvn dependency:build-classpath -Dmdep.outputFile=/dev/stdout -q`
java -cp $CP:./target/spring-data-test-1.0-SNAPSHOT.jar -Dtest.serverType=onprem -Dtest.endpoint=http://localhost:8080 com.example.App