MichaelHai/himock

quick way setting return and exceptions with variable arguments.

Opened this issue · 1 comments

used with time() should repeat the whole sequence.

There's a problem due to the restriction of Java.
willReturn(int... values) and willReturn(T... values) will be ambiguous because they both match willReturn(1, 2, 3) but int[] can not be converted to T[]. Without defining the primitive type interface separately, the type of the values will be java.lang.Integer instead of int which is not perfect enough for the error report.