Book Image

Test-Driven Java Development

Book Image

Test-Driven Java Development

Overview of this book

Table of Contents (17 chapters)
Test-Driven Java Development
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
8
Refactoring Legacy Code – Making it Young Again
Index

Chapter 7. BDD – Working Together with the Whole Team

 

"I'm not a great programmer; I'm just a good programmer with great habits."

 
 --Kent Beck

Everything we did until now is related to techniques that can be applied only by developers for developers. Customers, business representatives, and other parties that are not capable of reading and understanding code were not involved in the process.

TDD can be much more than what we did until now. We can define requirements, discuss them with the client, and get agreement as to what should be developed. We can use those same requirements and make them executable so that they drive and validate our development. We can use ubiquitous language to write acceptance criteria. All this, and more, is accomplished with a flavor of TDD called behavior-driven development (BDD).

We'll develop a Books Store application using a BDD approach. We'll define acceptance criteria in English, make the implementation of each feature separately, confirm that it is working...