摘要:翻译自《Programming Groovy - Dynamic Productivity for the jdk Developer》的P243。原文如下:Stubs vs. MocksIn the article “Mocks Aren’t Stubs,” (http://martinfowler.com/articles/mocksArentStubs.html), Martin Fowler discusses the difference between stubs and mocks. A stub stands in for a real object. It simply re
阅读全文