# prm-gp-registrations-mi
GP Registrations MI is a service used to collect Management Information describing patient transfers in the form of JSON events sent over a RESTful API.
- Download Java 17 OpenJDK
brew install openjdk@17
sudo ln -sfn /usr/local/opt/openjdk@17/libexec/openjdk.jdk \
/Library/Java/JavaVirtualMachines/openjdk-17.jdk
List your java versions
/usr/libexec/java_home -V
You may need to set the JAVA_HOME path in your config, eg. (zsh):
vim ~/.zshrc
export JAVA_HOME=`/usr/libexec/java_home`
Source your profile to load the changes:
source ~/.zshrc
./tasks run_local
To check the application is running, you can go to swagger:
http://localhost:8080/swagger
Or you can also hit the status endpoint:
http://localhost:8080/_status
Run unit tests
./tasks test_unit
Run test coverage verification
./tasks test_coverage
Run dependency check
./tasks dep
Run code quality check
./tasks code_quality
Validate the code
./tasks validate
If you are using IntelliJ and you are unable to run the tests, make sure to run the tests through IntelliJ IDEA rather than Gradle
Build, Execution, Deployment > Build Tools > Gradle > Run tests using: Intellij