On 24 Apr, Nicholas Lesiecki wrote:
> I actually have an article coming out on IBM developerWorks in May on
> testing just such a situation. :) The short answer is to use AspectJ to
> replace certain calls (for instance, to your EjbUtil class) when running
> tests. The article runs a test suite in Cactus that I'm eventually going to
> work into one of the sample applications. If you're interested, you can
> start by checking out:
> 
> http://www.aspectj.org
> or
> http://www-106.ibm.com/developerworks/library/j-aspectj/index.html
> 

Ok, I'll look this over.

> I'm kind of amused by reading your code, it looks almost exactly like some
> code I've written, right down to:
> 
> HandlerHome home = EjbUtil.lookupHome(Handler.class, jndiName);
> 

What is it they say about great minds? :-)

L

-- 
Laurent Duperval <mailto:[EMAIL PROTECTED]>

HELLER'S LAW
    The first myth of management is that it exists.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to