ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Is there any way to run a single test _method_ with <junit> ?
Date Sat, 09 Feb 2002 07:06:08 GMT

----- Original Message -----
From: "Phil Surette" <psurette@espial.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message