Skip to content

Glossary: Software Design Patterns in Java

Mock

Also written: mocks

A test stand-in that also records how it was called so the test can check it. Libraries such as Mockito make them.

Where the book teaches it

Related terms

FakeStubMockito