I am using IntelliJ as my IDE and I run my junit tests from it. It 
automatically invoke the junit runner to run my tests. I assume the tool 
reference the junit.jar I set in the classpath and it is version 3.8.1.

The unit test I had problem contained just one line to test the 
initialization of Torque which set up the log4j logging based on entries 
in a properties file as following:

log4j.rootCategory = ALL, default
log4j.appender.default = org.apache.log4j.FileAppender
log4j.appender.default.file = ${torque.applicationRoot}/logs/uptime.log
log4j.appender.default.layout = org.apache.log4j.SimpleLayout

log4j.category.org.apache.torque = ALL, org.apache.torque
log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file = 
${torque.applicationRoot}/logs/torque.log
log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p 
%c - %m%n
log4j.appender.org.apache.torque.append = false

I don't get the exception when I run the test outside the junit 
framework ie. not extends TestCase.
However, even I set to run the Junit Runner with the parameter 
-Dlog4j.ignoreTCL=true, I still got an exception.

Pricilla


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to