1

I am aware of MockUnitils.assertNoMoreInvocations();, but how to achieve a similar effect only for one Mock object?

I am doing kind-of black box testing on some methods. I know a list of methods they may call on the mocks, but what I have to make sure is they absolutely won't call the other methods.

It seems I'll need something like assertOptionallyInvoked() or assertNoOtherInovations() on the mocks. Is this possible with Unitils?

Cœur
  • 37,241
  • 25
  • 195
  • 267
billc.cn
  • 7,187
  • 3
  • 39
  • 79

1 Answers1

0

Solved this by implementing my own Scenario class.

billc.cn
  • 7,187
  • 3
  • 39
  • 79