At least have it log a warning since in production usage you probably
wouldn't want to be changing ActionFactories at runtime. 

> -----Original Message-----
> From: Patrick Lightbody [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, March 15, 2003 1:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] ActionFactory - can't set factory 
> more than once
> 
> 
> In idea, when you run all tests at once, the same classloader 
> is used and so that's why you're having your trouble. Running 
> the tests individually in ant, for example, wouldn't have 
> this problem -- but it would take much longer.
> 
> Anyone object to changing this? Seems like a reasonable request...
> 
> -Pat
> 
> 
> ----- Original Message -----
> From: "Steve Conover" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 14, 2003 10:29 AM
> Subject: RE: [OS-webwork] ActionFactory - can't set factory 
> more than once
> 
> 
> > 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-webw
ork
> > >
> >
> >
> > -------------------------------------------------------
> > 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


-------------------------------------------------------
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