Bootstrapping
A purely test-driven project starts with a test. However, creating the repo in GitHub creates a README.md if you want it to be able to clone it. This is a good opportunity to write the spec for the project, or at least the initial spec, so I wrote that first.
Next, I used Maven’s archetype generation to set up the structure of the project. I chose an archetype that generated a project for Java-executable JARs, which generated the main class and its test class. As discussed in Chapter 6, I started with the constructor. I did not have an immediate need for attributes, so as the full recipe for bootstrapping the constructor did not apply, I squeezed a simple default construction test [445f41f] between various project setup commits. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access