Can you share your test code and pom? That would make it a bit easier to figure out what is possibly wrong
Which container / db are you using?
I'm using the TomEE container as Embedded, this is the eclipse project with the pom and the test (CountryBeanTest).
The application uses PostgreSQL, but for the DBUnit I wanted to use a in-memory database like H2 or HSQL. In the persistence I have configured HSQL.
You can download the project from here:
I have changed a bit the configuration and now I have configured a datasource and Hibernate is creating the tables and executing the query. However, the query returns zero rows because the dataset is not loaded.
Here is the output: http://pastebin.com/smFTJg1X
It seems to me that @UsingDataSet annotation is totally ignored.
I have found out why @UsingDataSet was ignored, I had to remove from @Deployment the attribute testable=false because it seems is not supported by arquillian persistence.
Now I get another error while loading the dataset "No Naming Context"
Any idea what is about?