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
First clone the project from github:
git clone https://github.com/energyos/OpenESPI-Common-java.git
cd OpenESPI-Common
Then 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
Open Eclipse and import a Maven project (File > Import... > Maven > Existing Maven Projects).
Open Spring Tool Suite and import a Maven project (File > Import... > Maven > Existing Maven Projects).
Open IntelliJ and open the project (File > Open...).
To run all Unit tests:
mvn test
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