Book Image

Mockito Cookbook

By : Marcin Grzejszczak
Book Image

Mockito Cookbook

By: Marcin Grzejszczak

Overview of this book

Table of Contents (17 chapters)
Mockito Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 9. Integration Testing with Mockito and DI Frameworks

In this chapter, we will cover the following recipes:

  • Injecting test doubles instead of beans using Spring's code configuration

  • Injecting test doubles instead of beans using Spring's XML configuration

  • Injecting test doubles instead of beans using Springockito

  • Injecting test doubles instead of beans with Guice

  • Injecting test doubles instead of beans with Guice using Jukito