Mock and Stub

2017-09-03  本文已影响14人  星期六1111

description:

We have a dojo about Mock and Stub.But first we couldn't use mockito to do that and need to use to a fack class to finsh. In the class CashRegister, it has a method process.In this method, we need to call the other method print which in the class Print. At the same time, we need to call the method asString,which in other class Purchase.

Question




Reflection

sometimes,I know some concept, but I don't know how to use them.

action

When we look at the document to learn new things, according to the example to write demo again, do not just focus on the concept itself.

上一篇 下一篇

猜你喜欢

热点阅读