Well, those errors that you're getting about test classes that cannot be
found are because the specified tag under the is
not pointing to where the tests are. This path problems are very common
when running ant tasks because is not trivial to understand the way in
which ant resolves the given
r 'Unexpected failure during bean definition parsing in resource
>>>>>> URL
>>>>>> [file:spring-misc-junit.xml] at:
>>>>>> Bean 'mailSender'; nested exception is java.lang.SecurityException:
>>>>>> class
>>>
Well, let's go step by step over the classpath definitions that you can
find in the example I attached a few mails ago.
The first classpath definition is required to tell the task where
to find the implementation of the mysql driver (as far as I know, you
did that successfully because the oracl
n a
>>>> dbunit
>>>> task. I tried adding a task to do
>>>> an insert, but don't know why this would be necessary since the test
>>>> themselves set up the test data, accessing a test data xml file. Even
&
Have you included the java junit.jar library into the classpath provided
for the junit task?
The TestListener class is actually included in that .jar file.
Regards.
Carlos
tmni escribió:
I appreciate both attempts to help.
I had already viewed that other web page and tried to follow it. It do
ts use dbunit and the underlying database is Oracle (accessed via
>> Hibernate in application).
>> I can't figure out how to define the test target and I cannot find a
>> sample
>> that does this. Does
>> anyone have a sample ant build file that runs junit tests that use
&
Hi tmni,
About the authentication exception that you're getting, I cannot guess
neither cause nor solution, but I think the following source code could
be helpful.
The first point is the problem you're getting with the oracle driver
load. I think that the point is that you have not defined w
17:15
An: user@ant.apache.org
Betreff: Defining ant target to run junit tests using dbunit
I am relatively new to ant and am having trouble setting up a target to run a
series of junit tests.
These tests all run fine when I launch them via eclipse. But if I try to run
ant directly via command
ple
that does this. Does
anyone have a sample ant build file that runs junit tests that use
dbunit/hibernate/oracle combination??
--
View this message in context:
http://www.nabble.com/Defining-ant-target-to-run-junit-tests-using-dbunit-tp17342896p17342896.html
Sent from the Ant - User