Basically dbunit doesnt use the persistence.xml and with jta persistence
unit the datasource is configure in arquillian.xml (in properties property)
or providing a tomee.xml.

I know Jean-Louis extended dbunit to reuse the jndi datasource, maybe he
could share his code
Le 16 févr. 2013 12:03, "Luca Merolla" <[email protected]> a écrit :

> Hi all,
>
> I'm still testing Arquillian with TomEE embedded and I would like to load a
> dataset generated with DBUnit.
>
> I have seen some examples that are using the
> annotation  @UsingDataSet("dataset.xml") however I don't see any DBUnit
> information about the data loaded and in fact in my test cases, the DAO is
> returning null from the database query.
>
> Here is the project to reproduce the issue
>
>
> http://www.fileconvoy.com/dfl.php?id=gad1e779cec1eb3289992251597f1580011e18db1d
>
> I thought it was a problem of dependencies, then I have added DBUnit in
> arquillian-pom.xml file but nothing changed.
>
> My application is using PostgreSQL, but for the testing I wanted to use an
> in-memory database like H2 or HSQL. In the persistence.xml I have tried to
> configure HSQL.
>
> Thanks in advance,
> LM
>

Reply via email to