Open GoogleCodeExporter opened 9 years ago
I think you need to wrap the array in an Object[] class, e.g.:
expectNew(Struct.class, new Object[] {nameValues}). ..
Original comment by johan.ha...@gmail.com
on 31 Oct 2011 at 7:34
+1 That worked for me.
I would suggested an enhancement on the error message:
org.powermock.reflect.exceptions.MethodNotFoundException: No method found with
name 'xyz' with parameter types: [ vargs ]. Have you tried to box them into an
Object[] already? in class com.visualmeta.frontend.url.UrlMapperService.
at
<Stacktrace ommited>
The documentation is not clear on this and I found very little insight on the
web.
Original comment by neillfon...@gmail.com
on 2 Apr 2015 at 11:58
Original issue reported on code.google.com by
Megafone...@gmail.com
on 26 Oct 2011 at 12:07