↧
Answer by Arnis Lapsa for What's the difference between a mock & stub?
A stub is a simple fake object. It just makes sure test runs smoothly.A mock is a smarter stub. You verify your test passes through it.
View ArticleAnswer by NebulaFox for What's the difference between a mock & stub?
A Mock is just testing behaviour, making sure certain methods are called.A Stub is a testable version (per se) of a particular object.What do you mean an Apple way?
View ArticleWhat's the difference between a mock & stub?
I've read various articles about mocking vs stubbing in testing, including Martin Fowler's Mocks Aren't Stubs, but still don't understand the difference.
View Article