Hello,
        Sorry for bothering guys, It was ENTIRELY my fault..
in my testcase I was calling following line

DatabaseOperation.DELETE.execute(connection, getDataSet());       
        DatabaseOperation.INSERT.execute(connection,getDataSet());
        
By replacing  DELETE with DELETE_ALL and INSERT with CLEAN_INSERT
I fixed my problem

Sorry again

Regards
        marco


-----Original Message-----
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: 05 August 2005 10:04
To: [email protected]
Subject: [castor-user] [OT?] Castor, openEJB and DBUnit

Hello all,
        Sorry for this post with could be off-topic

I am currently running dbunit test using OpenEJB (which uses castor
under the hood) and I am running into problems..

Basically, I am testing Entity EJB, and in my basic test I am creating a
new Entity bean.

my testcase.setUp() first delete what's in the database, and then insert
some data


the problem is that dbunit is deleting EVERYTHING but the rows created
via the call to ejb.create()..

so, basically, every row created using the entity bean is not getting
deleted.. I suspect there's a lock somewhere, but since I am no db
expert (and I have never used castor as a backend framework for EJB) I
was
wondering if any of you has experienced a similar problel..

thanx and regards
        marco


-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------


-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to