From: Davis, B. A. <b....@ra...> - 2004-04-16 14:12:59
|
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 |
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 |
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 > |
From: Steve F. <st...@m3...> - 2004-04-19 07:29:57
|
The latest sources are always available on the web site and it's not a big library, so you could just import it in your code. We've been Real Close to a first release but our days jobs suddenly got in the way. That said, the library is pretty stable and we only have a few things to change. S. eu wrote: > 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? |
From: eu <eu...@md...> - 2004-04-19 14:31:05
|
Steve Freeman wrote: > The latest sources are always available on the web site and it's not a > big library, so you could just import it in your code. > > We've been Real Close to a first release but our days jobs suddenly > got in the way. That said, the library is pretty stable and we only > have a few things to change. Steve, don't get me wrong. I have no problem to build jMock for myself. But it is definetely out of question to use self-made build for anything more or less serious. You should really release some beta builds. regards, Eugene > S. > > eu wrote: > >> 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? > > |
From: Steve F. <st...@m3...> - 2004-04-19 14:38:32
|
I know, I know. There are "just a few" things to finish before we release the first cut, but our regular jobs suddenly got more busy. S. eu wrote: > Steve, don't get me wrong. I have no problem to build jMock for myself. > But it is definetely out of question to use self-made build for anything > more or less serious. You should really release some beta builds. |