This sample application shows you how to do the following things:
- Swagger 2.0 Integration
- Swagger CodeGen Integration
- Testing services
- Testing controllers
- Running integration tests with RestAssured / embedded Spring Boot server
- Enabling Spring Loaded when running spring-boot app on Maven plugin
spring-boot maven plugin requires Maven 3.
brew install maven
mvn spring-boot:run
Swagger integration is already available:
Run all the tests:
mvn test
brew install swagger-codegen
./generate-client.sh
generate-client.sh
outputs Java source code into ./client directory and does mvn install
.
cd ./client-test
./gradew test
The MIT License