ahmaddarawshi / powermock

Automatically exported from code.google.com/p/powermock
0 stars 0 forks source link

Invocations of var arg methods and constructors and expectPrivate probably don't work for sub-types of arguments. #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E.g. let's say you have a method: 

private void x(MyInstanceType... myInstances)

PowerMock probably don't have support for doing:

Whitebox.invokeMethod(instance, "x", new MyInstanceType(), new
MyInstanceSubType());

Original issue reported on code.google.com by johan.ha...@gmail.com on 30 Oct 2008 at 9:35

GoogleCodeExporter commented 9 years ago
Invocations of var arg methods, constructors and expectPrivate now works for
sub-types of the declared parameter types.

Original comment by johan.ha...@gmail.com on 3 Nov 2008 at 1:37