A simple project showing how to use Spock to unit test camel routes.
Apache Camel is a popular integration framework with documentation and source code available with instructions on it's use and various components.
This project uses Spock to explore a simple way to unit test routing logic avoiding the need for a full-fledged integration context.
- Apache Camel
- Spring Boot
- Spock
- Groovy
./gradlew bootRun
./gradlew test
The app starts a basic Spring context with Spring Boot putting a request listener on the default port.
To send a message along the Camel routes when the app is running, issue a simple GET request to
curl http://localhost:8080/simple