ShopSpell

Mockito Cookbook [Paperback]

$54.99       (Free Shipping)
100 available
  • Category: Books (Computers)
  • Author:  Marcin Grzejszczak
  • Author:  Marcin Grzejszczak
  • ISBN-10:  1783982748
  • ISBN-10:  1783982748
  • ISBN-13:  9781783982745
  • ISBN-13:  9781783982745
  • Publisher:  Packt Publishing - ebooks Account
  • Publisher:  Packt Publishing - ebooks Account
  • Pages:  264
  • Pages:  264
  • Binding:  Paperback
  • Binding:  Paperback
  • Pub Date:  01-Mar-2014
  • Pub Date:  01-Mar-2014
  • SKU:  1783982748-11-MPOD
  • SKU:  1783982748-11-MPOD
  • Item ID: 101991880
  • Seller: ShopSpell
  • Ships in: 2 business days
  • Transit time: Up to 5 business days
  • Delivery by: Dec 29 to Dec 31
  • Notes: Brand New Book. Order Now.

Over 65 recipes to get you up and running with unit testing

Overview

  • Implement best practices to perform tests with Mockito
  • Extend Mockito with other popular Java-based unit testing frameworks such as JUnit and Powermock
  • A focused guide with many recipes on testing your software using Mockito

In Detail

Mockito is a testing framework that allows you to easily create test doubles (mocks) of the system under test's collaborators. You can use mocks to better simulate the behavioral patterns of your software in isolation to receive feedback from tests as soon as possible.

This book consists of recipes that depict the usage of a vast majority of Mockito functionalities in real-life examples. It goes beyond the documentation and covers how Mockito works and shows the steps to write effective tests using Mockito. This is a focused guide with lots of practical recipes of business issues and presentation of the entire test of the system. This book shows the use of Mockito's popular unit testing frameworks such as JUnit, PowerMock, TestNG, and so on.

What you will learn from this book

  • 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 Java-based 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

Approach

This is a focused guide with lots of practical recipes with presentations of business issues and presentation of the whole test of the system. This book shows the use of Mockito's popular unit testing frameworks such as JUnit, l³e

Add Review