Recycling examples
summary
Explains how to reuse Gherkin examples by swapping adapters: a delegator asks an adapter factory for either a model adapter, REST adapter (Dropwizard + Jersey), or web adapter (Selenium, headless Firefox/Chrome), and can vary databases (in-memory vs SQL). Implements Cucumber-JVM step delegation, runs adapters via Gradle/Cucumber plugin, and keeps fast feedback (~1s) when exercising the model and slower but higher-confidence full web/REST runs (~30s). Code is on GitHub.
AI-written summary · about
chapters (8)
- 0:00Introduction to recycling examples
- 2:04Executable specifications and themes
- 9:31Building the delegator architecture
- 27:53Pushing complexity to better places
- 32:13Implementing multiple adapters
- 37:09Running tests across themes
- 40:24Hexagonal architecture explained
- 41:08Resources and closing








