From: Steve F. <st...@m3...> - 2004-04-16 15:12:42
|
If you're using dynamic mocks, I suggest you consider moving to http://www.jmock.org. We've reworked a lot of things and believe it's a better alternative. It includes a cglib extension. S Davis, Brian A. wrote: > I am trying to do the patch for the mocking non-final class at: > > http://sourceforge.net/tracker/index.php?func=detail&aid=761544&group_id=181 > 89&atid=318189 > > > I am having a problem with getting it to work. I applied the patch and when > I try to mock a concrete like so: > > Mock something = new Mock(ArrayList.class); > > class I get: > > "IllegalArguementException java.util.ArrayList is not an interface." > > I have gone through the code of the cglib and sure enough it is checking to > see if it is an interface and throwing the Exception. I put the cglib1.0 > and asm on my classpath so I do not think it is a library issue but again > they do not say what version of them to get. > > My question is am I misunderstanding what this does or am I doing something > wrong? Thanks for your help. > > Brian |