----- Original Message -----
From: "Phil Surette" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 2:11 PM
Subject: RE: Is there any way to run a single test _method_ with <junit> ?


> Thanks for the info, but no, I cannot solve
> my problem that way. The problem is that things
> are left lying around the classloader. Actually
> I am using URL.setContentHandlerFactory, which
> can only be called once per VM, to load a 3rd
> party library. The problem is that the library
> holds onto stuff between test runs in some static
> variables which are hidden from me (private).
>


yeah, I have encountered other bits of code which do that, like JMX.

My solution was only to do the init once, not in a setup or teardown call,
but have teardown do enough of a cleanup not to dirty succeeding runs.


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

Reply via email to