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
Your Memberships & Subscriptions
There was an error. We were unable to process your subscription due to an error. Please refresh and try again.
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.
Mock Object Testing with Examples Using Mockito Kindle Edition
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.
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.
- LanguageEnglish
- Publication dateApril 6, 2020
- File size12025 KB
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
Customers who read this book also read
Page 1 of 1 Start overPage 1 of 1
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
- Best Sellers Rank: #1,860,113 in Kindle Store (See Top 100 in Kindle Store)
- #542 in Software Engineering
- #763 in Software Design Tools
- #1,154 in Software Testing
- Customer Reviews:
Customer reviews
4.1 out of 5 stars
4.1 out of 5
8 global ratings
How customer reviews and ratings work
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from other countries
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.