-
1. Re: Arquillian DBUnit load from xml file
bmajsak Feb 16, 2013 2:24 AM (in response to osnetwork)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?
-
2. Re: Arquillian DBUnit load from xml file
osnetwork Feb 16, 2013 5:20 AM (in response to bmajsak)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:
http://www.fileconvoy.com/dfl.php?id=gad1e779cec1eb3289992251597f1580011e18db1d
-
3. Re: Arquillian DBUnit load from xml file
osnetwork Feb 16, 2013 10:06 AM (in response to osnetwork)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.
-
4. Re: Arquillian DBUnit load from xml file
osnetwork Feb 16, 2013 10:29 AM (in response to osnetwork)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?
-
5. Re: Arquillian DBUnit load from xml file
bmajsak May 6, 2014 6:57 AM (in response to osnetwork)I assume your problem was solved by TomEE folks
http://openejb.979440.n4.nabble.com/Arquillian-TomEE-Embedded-ignores-UsingDataSet-td4660823i20.html