ITeye博客

Mocking and Stubbing

jusi · 2014-12-10 17:05 · test · 编程语言 · Markdown

Mocking

count abstract method invocations

 

Stubbing

get return of abstract method 

 

//mocking
1 * subscriber.receive()

//stubbing
subscriber.recerive() >> content

//combine mocking and stubbing

1 * subscriber.receive() >> content

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。