All challenges
Multiple ChoiceHard 30s

Stub vs Mock

Choose the best answer for: test doubles
Options
  1. 1They are identical and there is no meaningful difference
  2. 2Mocks return fixed data while stubs verify interactions
  3. 3Stubs return fixed data; mocks verify interactions
  4. 4Stubs verify interactions while mocks provide fixed data

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle