Mocking Glossary

Browse 2 mocking terms defined in plain English, from the cultural dictionary of computing.

2 Mocking Terms

Stub
A minimal, hard-coded stand-in for a real dependency that returns predetermined data when called, used in testing to isolate the unit under test from external...
Test Double
A generic term for any object that stands in for a real dependency in tests. Types: dummy (passed but never used), stub (returns canned answers), spy (records...

Related Topics