Using ScalaMock, I want to mock/stub a class method so it will return a different value per call (order of calls matters).
I can achieve this with mock and expects, but that will force me to verify those calls.
Can I do this with a stub?
Also, how can I say something like "first time return X, and then always return Y" (both with mock and stub)?
Aucun commentaire:
Enregistrer un commentaire