摘要: I believe the biggest distinction is that a stub you have already written with predetermined behavior. So you would have a class that implements the dependency (abstract class or interface most likely) you are faking for testing purposes and the methods would just be stubbed out with set responses. 阅读全文
posted @ 2013-07-03 21:48 DebugLZQ 阅读(763) 评论(2) 推荐(0) 编辑