ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: unit test failure w/junit task
Date Wed, 05 Mar 2003 23:10:03 GMT

----- Original Message -----
From: "Erik Price" <>
To: "Ant Users List" <>
Sent: Wednesday, March 05, 2003 13:00
Subject: Re: unit test failure w/junit task

> Arg.  I don't know anything about JNI and classloaders.  I'm using a 3rd
> party library to make a connection to a remote application in my setUp()
> method so I can retrieve an object, then I'm using that same library to
> make a separate connection to the remote application to retrieve another
> object to perform assertEquals() tests etc.

The problem could be that your setUp() method gets called before every test
method, so the library gets loaded multiple times. Try moving whatever loads
the library to something static that runs once, or clean up fully in

View raw message