>_
SWE Maxx
Questions
Quizzes
Daily challenge
System design
My attempts
Sign in
☀
☾
Light mode
Dark mode
Loading question…
Sign in
← Question bank
Software testing · Matching
Difficulty: Medium
Match the descriptions to these test doubles terms: Dummy, Stub, Spy, Mock.
Test doubles
Concept relationships
Choose a match for every item. Use each answer once.
A dummy satisfies a dependency shape without supplying meaningful test behavior.
Choose a match
Dummy
Mock
Spy
Stub
Spies capture observations such as arguments and invocation counts.
Choose a match
Dummy
Mock
Spy
Stub
Mocks focus on verifying the required communication with a dependency.
Choose a match
Dummy
Mock
Spy
Stub
Stubs control collaborator outputs so a test can reach a chosen scenario.
Choose a match
Dummy
Mock
Spy
Stub
Check answer
More in Software testing →
Match the descriptions to these test doubles terms: Dummy, Stub, Spy, Mock. | SWE Maxx