Kindle Unlimited
Unlimited reading. Over 4 million titles. Learn more
OR
Kindle Price: $7.99

These promotions will be applied to this item:

Some promotions may be combined; others are not eligible to be combined with other offers. For details, please see the Terms & Conditions associated with these promotions.

You've subscribed to ! We will preorder your items within 24 hours of when they become available. When new books are released, we'll charge your default payment method for the lowest price available during the pre-order period.
Update your device or payment method, cancel individual pre-orders or your subscription at
Your Memberships & Subscriptions

Buy for others

Give as a gift or purchase for a team or group.
Learn more

Buying and sending eBooks to others

  1. Select quantity
  2. Buy and send eBooks
  3. Recipients can read on any device

These ebooks can only be redeemed by recipients in the US. Redemption links and eBooks cannot be resold.

Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Mock Object Testing with Examples Using Mockito Kindle Edition

4.1 4.1 out of 5 stars 8 ratings

THE POPULAR GUIDE TO MOCK OBJECT TESTING REWORKED WITH EXAMPLES IN MOCKITO.

Mock objects are a powerful tool for unit testing in complex modern software systems. But mock object testing is also misunderstood by many developers who struggle to use mocks to create elegant, maintainable tests.

Using the popular Mockito framework for Java, this book reveals mock object testing across the entire expect-use-verify cycle. Topics include:
• Dependencies and Testable Design
• Creating a Mock from Scratch
• Nice and Strict Mocks
• Matching
• Setting Expectations
• Mock Method Results
• Verification
• Partial and Class Mocking
• Captures

At the end of the book, readers will have a solid grasp on everything that can be done with mocks and be well-prepared to introduce mock object testing into their own unit tests.
Read more Read less
Due to its large file size, this book may take longer to download

Add a debit or credit card to save time when you check out
Convenient and secure with 2 clicks. Add your card

Product details

  • ASIN ‏ : ‎ B086VT8VS6
  • Publication date ‏ : ‎ April 6, 2020
  • Language ‏ : ‎ English
  • File size ‏ : ‎ 12025 KB
  • Text-to-Speech ‏ : ‎ Enabled
  • Screen Reader ‏ : ‎ Supported
  • Enhanced typesetting ‏ : ‎ Enabled
  • X-Ray ‏ : ‎ Not Enabled
  • Word Wise ‏ : ‎ Not Enabled
  • Sticky notes ‏ : ‎ On Kindle Scribe
  • Print length ‏ : ‎ 74 pages
  • Customer Reviews:
    4.1 4.1 out of 5 stars 8 ratings

Customer reviews

4.1 out of 5 stars
4.1 out of 5
8 global ratings

Top review from the United States

Reviewed in the United States on November 21, 2021
Scott teaches the proper way to test with Mockito and Junit....including the Given, When, Then outline

Top reviews from other countries

Translate all reviews to English
The Private One
5.0 out of 5 stars Solide Grundlagen, verständlich erklärt
Reviewed in Germany on September 18, 2020
Scott McMaster führt wunderbar durch den Weg des Mockens; erklärt werden in aller ausreichenden Kürze nebenbei auch noch Unterschiede zwischen Integration- und Unit Tests, Stubs und Mocks, und ganz nebenbei beginnt er mit einem "Writing a Mock from Scratch"-Abschnitt. Obwohl das Buch sehr wenige Seiten hat, bietet es sehr viel Inhalt; und wird von mir all jenen, die in der offiziellen Mockito-Doku ebenso wie ich manchmal den Wald vor lauter Bäumen nicht sehen, wärmstens empfohlen. Schon in den ersten paar Kapiteln hatte ich Aha-Effekte und habe endlich verstanden, was ich beim Mocken gerne falsch angegangen bin (und warum es dann nicht funktionieren konnte). Wer das Buch kauft, erhält auch noch Zugang zu den im Buch verwendeten Beispielcodes - zum Nachsehen und -probieren.
One person found this helpful
Report
Report an issue

Does this item contain inappropriate content?
Do you believe that this item violates a copyright?
Does this item contain quality or formatting issues?