The book store BDD story

Before we start, clone the code that is available at https://bitbucket.org/vfarcic/tdd-java-ch08-books-store. It is an empty project that we'll use throughout this chapter. As with previous chapters, it contains branches for each section, in case you miss something.

We'll write one BDD story that will be in a pure text format, in plain English and without any code. That way, all stakeholders can participate and get involved independently of their coding proficiency. Later on, we'll see how to automate the story we're writing.

Let us start by creating a new file called administration.story inside the stories directory:

We already have the narrative that we wrote earlier, so we'll build on top of that:

Narrative: In ...

Get Test-Driven Java Development - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.