nazymko / powermock

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

Create custom PowerMock matchers #125

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Create own implementations of e.g. isA(..) that doesn't return null but an
"instance" (or something similar) of the type passed to isA(). Otherwise
expectPrivate won't work with argument matchers if there's more than one
private method of the same name. Work-arounds exists though, you can
specify the parameter-types of the method manually or even pass a Method to
expectPrivate.

Original issue reported on code.google.com by johan.ha...@gmail.com on 2 Jul 2009 at 9:41