Skip to content

Glossary: Java Beyond the Basics

Mockito

Also written: mocking

A Java library that creates stand-in (mock) objects for tests. It lets a test replace a real dependency with a controllable fake.

Where the book teaches it

Related terms

Unit test