Re: Class.forName() in test environment

2004-07-08 Thread Stefan Bodewig
On Thu, 8 Jul 2004, Jan Materne <[EMAIL PROTECTED]> wrote: > A first view into the build.xml seems to add the test classes (and > sources) to the classpath, but it doesnt ... Delegating class loaders. The core Ant classes are loaded by a classloader closer to the system classloader than the one

Re: Class.forName() in test environment

2004-07-08 Thread Stefan Bodewig
On Thu, 08 Jul 2004, Steve Loughran <[EMAIL PROTECTED]> wrote: > I'd suspect the classloader used for loading the algorithm is not > the one you want. There may be a context class loader (We dont use > that in ant, yet, do we?), We do - in some places. And I think the junit task sets it. Stefan

Re: Class.forName() in test environment

2004-07-08 Thread Steve Loughran
[EMAIL PROTECTED] wrote: I´ve added the capability to specify a class which the selector should load as cache|algorithm|comparator. Test passed. BUT I have to add "-lib build\testcases" for running the tests, otherwise the selector wont find a mock class which resides in the test package. A first