Mockito Cookbook /

Over 65 recipes to get you up and running with unit testing 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 iso...

Full description

Bibliographic Details
Main Author: Grzejszczak, Marcin (Author)
Corporate Author: Safari, an O'Reilly Media Company
Format: eBook
Language:English
Published: Packt Publishing, 2014.
Edition:1st edition.
Subjects:
Online Access:Connect to this electronic resource
Description
Summary:Over 65 recipes to get you up and running with unit testing 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 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
Item Description:Electronic resource.
Physical Description:1 online resource (284 pages)
Format:Mode of access: World Wide Web.