My Account Log in

1 option

Mockito made clear : Java unit testing with mocks, stubs, and spies / Ken Kousen.

Ebook Central College Complete Available online

View online
Format:
Book
Author/Creator:
Kousen, Ken, author.
Language:
English
Subjects (All):
Computer software--Quality control.
Computer software.
Computer software--Testing.
Physical Description:
1 online resource (114 pages)
Edition:
First edition.
Place of Publication:
[Place of publication unknown] : The Pragmatic Programmers, LLC., [2023]
Summary:
This book, 'Mockito Made Clear' by Ken Kousen, provides an in-depth guide to using Mockito, a popular Java library for creating test doubles such as mocks, stubs, and spies. Aimed at both novice and experienced developers, it covers essential concepts for effective unit testing, focusing on how to manage dependencies in code. The author shares insights into the extensive features of Mockito, drawing from years of practical experience and teaching. The book's purpose is to enhance developers' understanding of Mockito and improve their ability to write automated tests, thereby supporting sustainable agile development. Generated by AI.
Contents:
Mockito Made Clear
About the Pragmatic Bookshelf
Table of Contents
Early Praise for Mockito Made Clear
Foreword to Mockito Made Clear
Acknowledgments
Preface
Chapter 1: Build a Testing Foundation
Saying Hello to Mockito
Counting Astronauts by Spaceship
Creating the Basic Classes
Adding Unit and Integration (End-to-End ) Tests
Wrapping Up
Chapter 2: Work with the Mockito API
Selecting Our System to Test
Creating Mocks and Stubs
Setting Expectations
Using Mocks and Stubs in the Astro Project
Chapter 3: Use Built-in and Custom Matchers
Using the Existing Argument Matchers
Creating Custom Argument Matchers
Verifying the Order of Methods Called
Chapter 4: Solve Problems with Mockito
Deciding Between Mockito and BDDMockito
Testing void Methods Using Interactions
Capturing Arguments
Setting Outputs Based on Inputs with Custom An swers
Spying to Verify Interactions Generated by AI.
Notes:
Description based on publisher supplied metadata and other sources.
Part of the metadata in this record was created by AI, based on the text of the resource.
Description based on print version record.
Includes bibliographical references.
Other Format:
Print version: Kousen, Ken Mockito Made Clear
ISBN:
9798888650134
OCLC:
1369667077

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account