Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.35 KB

README.md

File metadata and controls

62 lines (39 loc) · 1.35 KB

OpenESPI-Common

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-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

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:

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