ahmaddarawshi / powermock

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

Typesafe reflection #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Refactor WhiteBox to support the following. Maybe even create separate project?

createPartialMock(SomeClass.class, methodCalled("qwe"), methodCalled("asd"));
createPartialMock(SomeClass.class, methodReturning(Qwe.class),
methodCalled("asd"));
createPartialMock(SomeClass.class, methodReturning(Qwe.class));
createPartialMock(SomeClass.class, withArguments(Qwe.class, Arg.class));

invoke(methodReturning(Qwe.class))
invoke(privateMethodReturning(Qwe.class))

invoke(methodAnnotated(Qwe.class))

Original issue reported on code.google.com by jan.kron...@gmail.com on 14 Nov 2008 at 5:40