Mockito Essentials Front Cover

Mockito Essentials

  • Length: 214 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2014-11-24
  • ISBN-10: 1783983604
  • ISBN-13: 9781783983605
  • Sales Rank: #3437115 (See Top 100 Books)
Description

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

About This Book

  • Explore Mockito features and learn stubbing, mocking and spying dependencies using the Mockito framework
  • Mock external dependencies for legacy and greenfield projects and create an automated JUnit safety net for building reliable, maintainable and testable software
  • A focused guide filled with examples and supporting illustrations on testing your software using Mockito

Who This Book Is For

This book is ideal for developers who have some experience in Java application development as well as some basic knowledge of test doubles and JUnit testing. This book also introduces you to the fundamentals of JUnit testing, test doubles, refactoring legacy code, and writing JUnit tests for GWT and web services.

In Detail

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.

Table of Contents

Chapter 1. Exploring Test Doubles
Chapter 2. Socializing with Mockito
Chapter 3. Accelerating Mockito
Chapter 4. Behavior-driven Development with Mockito
Chapter 5. Unit Testing the Legacy Code with Mockito
Chapter 6. Developing SOA with Mockito
Chapter 7. Unit Testing GWT Code with Mockito

To access the link, solve the captcha.