Tue Apr 09 18:38:55 HKT 2019
Yet other discussion of Stubs, Fakes, and Mock Objects - http://vladimirlevin.blogspot.com/2007/11/stubs-fakes-mocks.html http://www.sustainabletdd.com/2012/05/mock-objects-part-1.html
While reviewing this article, Marty Andrews pointed out an important insight: there are two ways to use a mock object, either as a testing technique or as a design technique, and the intended use helps shape the available choices.
Someone post some arguement that using mock probably a bad idea , which look like a endless arguement... - http://jroller.com[..]xRuiz?entry=mocks_for_concrete_class_can
Alberto Savoia on Testing the Untestable, raise a point that mocking make testing more portable, it probably true, but database setup may be not that difficult to port. - http://www.artima.com/forums/flat.jsp?forum=276&thread=213402
Fakes should have their own tests - http://googletesting.blogspot.com.au[..]/testing-on-toilet-fake-your-way-to.html
Again, other post on pros and cons for difference approach - https://codurance.com/2019/04/08/Introduction-to-test-doubles/
(google search) (amazon search)