ActionFactory.setFactory is happening inside the actual tests, and I'm
running them through Idea, which I'm pretty sure runs them exactly like
an AllTests-type setup would.

In any case everything is running under the same vm and ActionFactory
is holding a static reference.

By the way, wouldn't this be a situtation where you'd use an assert? 
Or (even better) maybe just let the user switch out ActionFactories if
he wants to (however dumb that idea is)?

--- Jason Carreira <[EMAIL PROTECTED]> wrote:
> What kind of tests? Junit tests? Are you doing the
> ActionFactory.setFactory() in you setUp() method? How are you running
> your tests?
> 
> > -----Original Message-----
> > From: Steve Conover [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, March 14, 2003 1:08 PM
> > To: webwork
> > Subject: [OS-webwork] ActionFactory - can't set factory more than
> once
> > 
> > 
> > I have a couple of unit tests that do 
> > ActionFactory.setFactory.  When run individually, they 
> > succeed, but when I run all my tests, all the tests that do 
> > this after the first one fail, since you can't set the 
> > ActionFactory more than once.
> > 
> > Any suggestions for a workaround?
> > 
> > -Steve
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by:Crypto Challenge is now open! 
> > Get cracking and register here for some mind boggling fun and 
> > the chance of winning an Apple iPod: 
> > http://ads.sourceforge.net/cgi-> bin/redirect.pl?thaw0031en
> > 
> > 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to