摘要:
mock与stub代表的是不同的unit testing方法(分别是 interaction-based 和state-based)。State-Based Testing一个例子:publicclassOrderStateTesterextendsTestCase{privatestaticStringTALISKER="talisker";privatestaticStringHIGHLAND_PARK="HighlandPark";privateWarehousewarehouse=newWarehouseImpl();protectedvoids 阅读全文
posted @ 2011-05-30 10:25
ido
阅读(2816)
评论(0)
推荐(0)