Look forward to hearing from you.
Thanks for the help!
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4216101#4216101
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216101
___
Hi Stale,
Can I also point out that this behaviour is fundamental to being able to use
AOP for unit-testing, certainly in our company, where we always have the real
object and the mock object implementing the same interface.
I will either use you're suggested workaround for now, or make the
Hi Stale,
Thanks for the response, I tried grouping the typedef with commas however I
received a parser error. I had hoped this would be possible, all the
documentation points toward this being possible.
My project is rather large, is it possible to zip up the eclipse project and
attach it
the smaller test the better :)
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4215620#4215620
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4215620
___
jboss-user mailing list
Hi Stale,
Couldn't get it any smaller, :)
Cut down Session Bean
public class AOPUnitTestManagerBean {
|
| private IPersistenceHelper helper;
|
| public AOPUnitTestManagerBean() {
| helper = new PersistenceHelper(null);
| }
|
| public void
I see the same behaviour when I edit the typedef example bundled with
jboss-aop-2.0.1.GA.
Tells me I've probably made the syntactic mistake in both :)
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4215670#4215670
Reply to the post :
hi, ive tested the code you provided and i get a classcastexception too. ill
take a closer look and let you know what find.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4215699#4215699
Reply to the post :
hi again. the problem is within the generated code and not in your pointcutdef.
the PersistenceHelper constructor is wrapped in aop code when we instrument
it, and that method will only accept an object of type PersistenceHelper. - not
the interface. thats why it is throwing a
hi, the expression you want should be possible, but from just looking at the
code you provided i couldnt see any immediate errors. have you tried to group
the typedef together with commas? - not sure if it would help but...
if you could provide a small example ill test it locally and probably