Re: Refactoring question

2002-04-24 Thread laurent . duperval
On 24 Apr, Vincent Massol wrote: >> In order to test properly, there needs to be >> a >> refactoring of the service method so that I can write a test for it >> specifically, without needing to have a container running that will > give >> me >> the correct home for the handler and all the rest of t

RE: Refactoring question

2002-04-24 Thread Vincent Massol
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 24 April 2002 17:50 > To: Cactus Mailing List > Subject: Refactoring question > > Hi, > > We're building a servlet which receives some parameters as input and calls

Re: Refactoring question

2002-04-24 Thread laurent . duperval
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

RE: Refactoring question

2002-04-24 Thread Nicholas Lesiecki
AIL PROTECTED]] Sent: Wednesday, April 24, 2002 9:50 AM To: Cactus Mailing List Subject: Refactoring question Hi, We're building a servlet which receives some parameters as input and calls a handler based on the input parameters. How that works is that one of the parameters is used as the JNDI name

Refactoring question

2002-04-24 Thread laurent . duperval
Hi, We're building a servlet which receives some parameters as input and calls a handler based on the input parameters. How that works is that one of the parameters is used as the JNDI name of the home interface of the handler. We pass that parameter to a static utility method which will return t