Sketching Out the Domain Model
The heart of any object-oriented program is the domain model. When we start to build a new system, we like to work directly with the domain model. This allows us to iterate and learn quickly about the problem we’re working on without getting distracted by user interface gizmos. Once we have a domain model that really reflects our understanding of the system, it’s easy to wrap it in a pretty skin.
We’re going to let Cucumber drive our work, building the domain model classes directly in the step definitions. As usual, we start by running mvn clean test on our scenario to remind us what to do next:
| ------------------------------------------------------- |
| T E S T S |
| ------------------------------------------------------- ... |
Get The Cucumber for Java Book now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.