[jboss-user] [JBoss AOP] - Re: Using AOP to mock out dependecies for unit-test

nizzy do-not-reply at jboss.com
Mon Mar 9 05:10:52 EDT 2009


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 "mock" object extend the "real" class, which also worked.

Thanks again for you're help.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216109#4216109

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216109



More information about the jboss-user mailing list