/uh-holiday-webapp-boot

A web application to display holidays used by UH.

Primary LanguageJava

A web application to display holidays used by UH.

Build Status Coverage Status Codacy Badge

Java

You'll need a Java JDK to build and run the project (version 1.8). If necessary, be sure to set your JAVA_HOME environment variable.

Building

Install the necessary project dependencies:

$ ./mvnw install

To run the Application from the Command Line:

$ ./mvnw clean spring-boot:run

To build a deployable war file for local development, if preferred:

$ ./mvnw clean package

You should have a deployable war file in the target directory. Deploy as usual in a servlet container, e.g. tomcat.

To run the Application, point your browser at:

http://localhost:8080/holiday/

Running Unit Tests

The project includes Unit Tests for various parts of the system. For this project, Unit Tests are defined as those tests that will rely on only the local development computer. A development build of the application will run the Unit Tests.

To run the Unit Tests:

$ ./mvnw clean test

To run a specific test class:

$ ./mvnw clean test -Dtest=StringsTest

To run a single method in a test class:

$ ./mvnw clean test -Dtest=StringsTest#trunctate