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 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.