Mockito Essentials

A practical guide to get you up and running with unit testing using Mockito

Mockito Essentials

Sujoy Acharya

1 customer reviews
A practical guide to get you up and running with unit testing using Mockito
Packt Subscription
FREE
$9.99/m after trial
eBook
$10.00
RRP $17.99
Save 44%
Print + eBook
$29.99
RRP $29.99
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$10.00
$29.99
$9.99 p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start a FREE 10-day trial

Frequently bought together


Mockito Essentials Book Cover
Mockito Essentials
$ 17.99
$ 10.00
Java Hibernate Cookbook Book Cover
Java Hibernate Cookbook
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $33.98
Add to Cart

Book Details

ISBN 139781783983605
Paperback214 pages

Book Description

Whether you are new to JUnit testing and mocking or a seasoned Mockito expert, this book will provide you with the skills you need to successfully build and maintain meaningful JUnit test cases and effectively mock external dependencies. At the beginning, this book deals with dummy and fake objects and then moves on to exploring stubs followed by an example on spying. Then, it will show you how to make legacy code testable, mock external dependencies using Mockito, and write testable code for greenfield projects. You will also gain an insight on the concepts of Service-oriented Architecture (SOA) as well as understand how to unit test RESTful web services with Mockito. By sequentially working through the steps in each chapter, you will quickly learn the features of Mockito.

Mockito Essentials will ensure your success with these concepts, tools, and frameworks.

What You Will Learn

  • Explore test doubles and work with dummy, spy, fake, stub, and mock objects
  • Uncover the Mockito architecture and build a custom mocking framework
  • Mock, stub, and spy external code dependencies using Mockito
  • Practice Behavior-driven Development (BDD) with Mockito
  • Make legacy code testable by mocking and spying dependencies
  • Mock GWT and web service dependencies using Mockito
  • Discover argument captors, inline stubbing, and resetting mock objects

Authors

Book Details

ISBN 139781783983605
Paperback214 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Java Hibernate Cookbook Book Cover
Java Hibernate Cookbook
$ 35.99
$ 10.00
Test-Driven Java Development Book Cover
Test-Driven Java Development
$ 39.99
$ 10.00
Spring: Developing Java Applications for the Enterprise Book Cover
Spring: Developing Java Applications for the Enterprise
$ 67.99
$ 10.00
Mockito for Spring Book Cover
Mockito for Spring
$ 14.99
$ 10.00
Learning Java Lambdas Book Cover
Learning Java Lambdas
$ 23.99
$ 10.00
Spring 5.0 Microservices - Second Edition Book Cover
Spring 5.0 Microservices - Second Edition
$ 39.99
$ 10.00