Paul,

What happens if you use JUnit directly instead of using Ant's JUnitTestRunner class?

--Keith

Paul Tomsic wrote:
anyone have any ideas why when I try to run a junit
test, i'm getting the error,
"java.lang.RuntimeException: Could not obtain the
default configuration file castor.properties from the
Castor JAR" ?
I've got the castor (v.0.9.6) jar in my classpath
(obviously, otherwise it wouldn't even compile) ?
I've even added an additional explicit
castor.properties file to a ./resources/ folder and
added that folder to the first entry in my classpath,
but nothing.
I'm not having the same problem in the regular runtime
environment, only when I run JUnit tests.

Here's my actual cmd line:

java -classpath
./resources:./lib/castor-0.9.6.jar:./lib/junit-3.8.1.jar:./classes

org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner
com.blah.MyTest


any thoughts greatly appreciated.

thanks






Reply via email to