Common run-time and test code shared between OpenESPI-DataCustodian and OpenESPI-ThirdParty.
An operational sandbox with these services operating may be found at: services.greenbuttondata.org
Setup
First clone the project from github:
git clone https://github.com/energyos/OpenESPI-Common-java.git
cd OpenESPI-CommonThen install the OpenESPI-Common JAR in your local repository:
mvn clean install # or for a specific profile mvn -P <profile name> -Dmaven.test.skip=true clean install
IDE Setup
Eclipse Setup
Open Eclipse and import a Maven project (File > Import... > Maven > Existing Maven Projects).
Spring Tool Suite Setup
Open Spring Tool Suite and import a Maven project (File > Import... > Maven > Existing Maven Projects).
IntelliJ Setup
Open IntelliJ and open the project (File > Open...).
Testing
Unit Tests
To run all Unit tests:
Run a single test class:
mvn -Dtest=<TestClassName> test mvn -Dtest=HomeControllerTests test
Run a single test in a single class:
mvn -Dtest=<TestClassName>#<testMethodName> test mvn -Dtest=HomeControllerTests#index_shouldDisplayHomePage test