Re: [Spice-cvs] cvs commit: spice/components/loggerstore/src/test/org/jcomponent/loggerstore LoggerStoreFactoryTestCase.java

Mauro Talevi <[email protected]> Mon, 01 Sep 2003 19:43:23 +0100
Newsgroups gmane.comp.java.spice.devel
Message-ID <[email protected]>
Peter Donald wrote:
>> 
> Wierd - I got that two. It passed the tests when I just did a build and then 
> when I did a rebuild it failed. No idea what that means :)
>

The problem is in the testLogKitLoggerStoreFactoryWithSpecifiedClassLoader()

comment the line
         Thread.currentThread().setContextClassLoader( null );

and all automagically goes back to normal
(well I did miss out the config in that test which is now in place :-)

What I find strange is that it works for the InitialLoggerStoreFactory 
test and not here.
Can you nullify the ClassLoader only once?

Anyway, commented it out (left TODO for understanding it) and now it 
passes it.  The specified classloader will take precedence over the
context one, so the validity of the test holds.

Cheers







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf