Open GoogleCodeExporter opened 9 years ago
Hm,
was the type automatically set to "defect" and the priority to "medium"? This
should of course be an "enhancement" of "low" priority.
Original comment by bjoern.g...@gmail.com
on 3 May 2011 at 7:31
Original comment by brice.du...@gmail.com
on 5 May 2011 at 12:46
Ask James to tweak it for you :) He should be lingering on the users' mailing
list.
Original comment by szcze...@gmail.com
on 5 May 2011 at 7:55
Eh, I'll tweak it for you. That really is something that I should host on a
special branch or as a separate project on github so that the code is
available. :)
Original comment by james.r....@gmail.com
on 6 May 2011 at 1:52
Actually, I responded too quick. I didn't touch the source code of Mockito for
this and the array is a result of backporting varargs to Array for JDK 1.4. The
most I could recommend is a convenience method like
when(mockRef.doSomething()).thenThrow(exception(new RuntimeException()))
to wrap it in a new Throwable[]{}.
Original comment by james.r....@gmail.com
on 6 May 2011 at 1:55
James, if you want to maintain 1.4 I can pull to you to the team, give you
commit rights, etc. Let me know if you're interested. Cheers ;)
Original comment by szcze...@gmail.com
on 6 May 2011 at 2:49
Hello,
I will follow James' advice to provide a method like Throwable[]
oneException(Throwable t)
Thanks for the replies. I suppose the issue can then be closed.
Björn
Original comment by bjoern.g...@gmail.com
on 13 May 2011 at 6:55
Original issue reported on code.google.com by
bjoern.g...@gmail.com
on 3 May 2011 at 7:29