Top "Dbunit" questions

DbUnit is a JUnit extension targeted at database-driven projects that, among other things, puts your database into a known state between test runs.

How do I reference a file that is placed in the WEB-INF folder when using Arquillian?

I am using maven and the standard directory layout. So I have added a testdata.xml file in the src/…

java jakarta-ee maven dbunit
org.dbunit.dataset.NoSuchTableException: Did not find table 'xxx' in schema 'null'

I know there have been discussions wrt to dbunit here. I have read most of them but I cant seem …

java hibernate spring dbunit
Is there a dbunit-like framework that doesn't suck for java/scala?

I was thinking of making a new, light-weight database population framework. I absolutely hate dbunit. Before I do, I want …

java database testing scala dbunit
DbUnit: NoSuchColumnException and case sensitivity

Before posting this I googled a bit, I looked for in dbunit-user archives and a bit also in DbUnit bug …

java mysql case-sensitive dbunit
Is there any way for DBUnit to automatically create tables?

I just realized that DBUnit doesn't create tables by itself (see How do I test with DBUnit with plain JDBC …

java dataset create-table dbunit
JAXBException: "package" doesnt contain ObjectFactory.class or jaxb.index

I have been playing with JAXB / MOXy a lot lately, and it works great on all my tests and example …

spring hibernate jaxb moxy dbunit
import/export xml for dbunit

How can we easily import/export database data which dbunit could take in the following format? <dataset> <…

xml dataset export dbunit
How do I test with DBUnit with plain JDBC and HSQLDB without facing a NoSuchTableException?

I am trying to use DBUnit with plain JDBC and HSQLDB, and can't quite get it to work -- even …

java jdbc junit hsqldb dbunit
JPA - How to truncate tables between unit tests

I want to cleanup the database after every test case without rolling back the transaction. I have tried DBUnit's DatabaseOperation.…

unit-testing jpa jpa-2.0 dbunit
DAO Unit testing

I have been looking at EasyMock and tutorials/examples around using it for Unit Testing DAO classes, for an "outside …

unit-testing dao easymock dbunit