Have a personal or library account? Click
here
to login
Paradigm
reference-global.com
Content
Services
Paradigm
Partners
Contact
Books
MOCKITO COOKBOOK
MOCKITO COOKBOOK
Over 65 recipes to get you up and running with unit testing using Mockito.
Publisher:
Packt Publishing Limited
By:
Marcin Grzejszczak
Paid access
|
Sep 2025
Product purchase options
E-Book
€28.99
Institutions
€118.95
Product purchase options
E-Book
€28.99
Institutions
€118.95
Description
Table of contents
Authors
Metrics
Key Features
Book Description
What you will learn
Create beautiful tests using Mockito
Create mocks and spies in a number of ways
Implement best practices to perform tests with Mockito
Extend Mockito with other popular Javabased unit testing frameworks such as JUnit and PowerMock
Stub behavior of mocks and spies
Verify test doubles with Mockito
Write good tests using Mockito
Integrate Mockito with DI systems
Compare Mockito to other mocking frameworks
Verify the behavior of your system under test
Who this book is for
Table of Contents
Getting Started With Mockito
Creating mocks
Creating spies
Stubbing behaviour of mocks
Stubbing behaviour of spies
Verifying test doubles
Verifying with arg matchers
Refactoring with Mockito
Mockito based tools
Mocking libraries comparison
Loading...
Loading...
Loading...
PDF ISBN:
978-1-78398-275-2
Publisher:
Packt Publishing Limited
Copyright owner:
© 2014 Packt Publishing Limited
Publication date:
2025
Language:
English
Pages:
284
People also read
Publications carousel
Previous slide
Next slide
Book
New
Mockito Essentials
Acharya, Sujoy
Book
New
MASTERING UNIT TESTING USING MOCKITO AND JUNIT
Acharya, Sujoy
Book
New
Mockito for Spring
Acharya, Sujoy
Book
New
Testing with JUnit
Przybylski, Leonard
,
Appel, Frank
Book
New
Mastering Software Testing with JUnit 5
Garcia, Boni
Book
Test-Driven Java Development
Book
New
JMeter Cookbook
Erinle, Bayo
Book
Hands-On Automation Testing with Java for Beginners
Book
New
D Cookbook
Ruppe, Adam
Book
OpenJDK Cookbook