Testing · Junior · Question 35 of 78

What is a stub?

Explanation

Stubs feed data in; mocks are used to verify interactions (calls). Fakes are simplified working implementations, like an in-memory repository.

Further reading

Problem with a question

Testing · Junior · question 35

Test yourself

Take the Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz