MichaelHai/himock

timer comparison

Closed this issue · 1 comments

Comparison can be user with timer. For example:

expect(() -> {
    dummy.doSomething();
    timesMoreThan(2);
});

This expectation should expect the doSomething method called more than twice on dummy.

Note that if timer comparison is used, no more willReturn/Throw/Answer should be called because it is unkown exactly how many times should be called on the last answer.

The system should show error on such condition because the user's intension is unknown.