Have a personal or library account? Click to login
Mockito for Spring Cover

Mockito for Spring

Learn all you need to know about the Spring Framework and how to unit test your projects with Mockito

Paid access
|Sep 2025
Product purchase options

Key Features

    Book Description

    What you will learn

    • Uncover the architecture of the Spring testing framework and write integration tests
    • Explore test doubles and work with dummy, spy, fake, stub, and mock objects
    • Mock Spring container dependencies using Mockito
    • Refresh your Spring Framework knowledge
    • Learn about the advanced Spring 4 Framework features
    • Work with the REST controller to build and unit test RESTful web services
    • Cache data with Spring and EhCache

    Who this book is for

    If you are an application developer with some experience in software testing and want to learn more about testing frameworks, then this technology and book is for you. Mockito for Spring will be perfect as your next step towards becoming a competent software tester with Spring and Mockito.

    Table of Contents

    1. Getting familiar with Spring Framework
    2. Writing unit tests with JUnit and Mockito
    3. Working with Spring Integration Tests
    4. Resolving out of container dependency with Mockito
    5. Time Travelling with Spring 4.0
    PDF ISBN: 978-1-78398-379-7
    Publisher: Packt Publishing Limited
    Copyright owner: © 2015 Packt Publishing Limited
    Publication date: 2025
    Language: English
    Pages: 178