The Cucumber for Java Book
Behaviour-Driven Development for Testers and Developers
Publisher: Pragmatic Bookshelf
Final Release Date: February 2015
Pages: 338

Teams working on the JVM can now say goodbye forever to misunderstood requirements, tedious manual acceptance tests, and out-of-date documentation. Cucumber - the popular, open-source tool that helps teams communicate more effectively with their customers - now has a Java version, and our bestselling Cucumber Book has been updated to match. The Cucumber for Java Book has the same great advice about how to deliver rock-solid applications collaboratively, but with all code completely rewritten in Java. New chapters cover features unique to the Java version of Cucumber, and reflect insights from the Cucumber team since the original book was published.

Until now it's been difficult for teams developing Java applications to learn how to benefit from Behaviour-Driven Development (BDD). This book changes all that by describing in detail how to use Cucumber to harness the power of plain language specifications in your development process.

In part 1, you'll discover how to use Cucumber's Gherkin DSL to describe the behavior your customers want from the system. You'll also learn how to write Java code that interprets those plain language specifications and checks them against your application. Part 2 guides you through a worked example, using Spring, MySQL, and Jetty. Enhanced chapters teach you how to use Selenium to drive your application and handle asynchronous Ajax calls, and new chapters cover Dependency Injection (DI) and advanced techniques to help keep your test suites fast. Part 3 shows you how to integrate Cucumber with your Continuous Integration (CI) system, work with a REST web service, and even use BDD with legacy applications.

Written by the creator of Cucumber and two of its most experienced users and contributors, The Cucumber for Java Book is an authoritative guide that will give you and your team all the knowledge you need to start using Cucumber with confidence.

Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
oreillyThe Cucumber for Java Book

(based on 2 reviews)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 2 customers

Displaying reviews 1-2

Back to top

(0 of 4 customers found this review helpful)


The 2nd half of the book is more than bad.

By Peter

from San Francisco, CA

Verified Reviewer

Comments about oreilly The Cucumber for Java Book:

It's very bad. I almost vomit when I read the chapter about Selenium. I feel so lucky that I did not read this book earlier when I began to study Selenium.

(1 of 2 customers found this review helpful)


Best book for understand BDD process.

By Viktor Sidochenko

from Russia, Novosibirsk

About Me Developer

Verified Reviewer


  • Easy to understand
  • Helpful examples
  • Well-written


    Best Uses

    • Intermediate
    • Novice
    • Student

    Comments about oreilly The Cucumber for Java Book:

    The book is clearly written and well structured. Good examples help readers understand in details of
    how to work with such interesting instrument as cucumber. Easy language and jokes inside of the text
    make process of understanding not so boring and enjoyable. Additional remarks as "colored text in windows" and others contain good notes and tips.

    So, I can say that book is awesome and I was really delighted while reading this book.
    But as for me you should cut off some of chapters like "Why cucumber" and "Behaviour-Driven Development",
    because I think that readers, who will read this book, already known what is BDD and why cucumber if they already purchased this book.
    Also I think that you should add more examples for Windows OS command line. Also in chpater "first taste" describe more detail about commands. For eample you wrote: "java -cp "jars/*" cucumber.api.cli.Main -p pretty features", but you didn't describe what is pretty features mean, or give link where it's described. But anyway the book is good and easy reading, so thank you for such awesome book. I hope it will helps many testers and companies start their first BDD projects.

    Displaying reviews 1-2

    Back to top

    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Print:  $36.00