Closed GoogleCodeExporter closed 8 years ago
can you provide a tiny distro that demos this behavior? How do I declare a
Mockito mock as a Spring bean?
Original comment by szcze...@gmail.com
on 14 Jun 2010 at 9:03
You won't have to ask your huge fans twice :)
- test.zip is using CGLIB directly
- springTest.zip is using Spring AOP on a Mockito bean
In order to use JdkDynamicAopProxy instead of CGLIB in the springTest example,
remove [proxy-target-class="true"] in
src\main\resources\spring\spring-config.xml
Thanks,
Al
Original comment by albel...@gmail.com
on 15 Jun 2010 at 1:24
Attachments:
Thanks for the nice zips Al :)
Will be fixed soon.
Original comment by szcze...@gmail.com
on 16 Jun 2010 at 11:11
This issue was closed by revision r2020.
Original comment by szcze...@gmail.com
on 16 Jun 2010 at 11:23
Original comment by szcze...@gmail.com
on 3 Jul 2011 at 12:43
Original issue reported on code.google.com by
albel...@gmail.com
on 11 Jun 2010 at 2:27