gnecula / bond

Spy-based testing library.
http://necula01.github.io/bond/
Other
7 stars 3 forks source link

[jbond] Clean up mocking capabilities #24

Open xkrogen opened 8 years ago

xkrogen commented 8 years ago

Currently Java has mocking capabilities through PowerMock, but they require a sizable amount of ugly setup code on each test (see http://necula01.github.io/bond/jbond/bond/spypoint/BondMockPolicy.html). There may be ways to reduce this; we should investigate further.

xkrogen commented 8 years ago

One idea is to see if we can dynamically inject some of the annotations at runtime; I plan to investigate how feasible this is.