Chapter 4. Behavior-driven Development with Mockito

"Computer science is no more about computers than astronomy is about telescopes."

– Edsger Dijkstra

This chapter explores Behavior-driven Development (BDD) and how BDD can help you minimize project failure risks. The following topics are covered in this chapter:

  • Understanding the context of BDD
  • Exploring BDD
  • Exercising BDD with Mockito

Understanding the context of BDD

This section deals with the software development strategies, drawbacks, and conquering the shortcomings of traditional approaches. The following strategies are applied to deliver software products to customers:

  • Top-down or waterfall approach
  • Bottom-up approach

We'll cover these two approaches in the following sections.

The following key people/roles/stakeholders ...

Get Mockito Essentials now with O’Reilly online learning.

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