ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
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" <>
To: "'Ant Users List'" <>
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:   <>
For additional commands, e-mail: <>

View raw message