From: eu <eu...@md...> - 2004-04-16 15:20:49
|
Steve Freeman wrote: > 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. Any idea when jmock builds will be available? Is there are any plan in terms of the release schedulle? regards, Eugene > 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 > |