Spring boot demo for web layer and integration testing
For a full demo explanation:
Testing Spring Boot RESTful APIs using MockMvc/Mockito, Test RestTemplate and RestAssured
To build Gradle project from the source directory use:
./gradlew clean build --info
To run unit tests:
./gradlew clean test --info
To run integration tests:
./gradlew clean integration --info
To run the application:
./gradlew bootRun
it will start on the default 8080 port
Are you up?? - http://localhost:8080/actuator/health
Wanna look at some tables?? - http://localhost:8080/h2-console/
User=admin Password=admin
Got Swag?? - http://localhost:8080/swagger-ui.html