By default, DbUnit does a CLEAN_INSERT, which means it wipes out your
data and populates your database with what's in sample-data.xml. If
you want to change this, modify the following property:
CLEAN_INSERT
Options are as follows:
http://mojo.codehaus.org/dbunit-maven-plugin/operation-mojo.html#
No, i don't use sample-data.xml to populate it. I populated my database
using sql file that i created
from mysqldump. What do you mean "if you're only doing a get, it should
work fine"?..
Thanks a lot Matt.
Matt Raible wrote:
The tests rollback any transactions that modified data when you're
The tests rollback any transactions that modified data when you're in
the database. However, if you're only doing a get, it should work
fine. Does your sample-data.xml populate the database with 142,882
countries?
Matt
On Mon, Oct 19, 2009 at 2:07 AM, Nelson Biasura
wrote:
>
> Hello, I'm trying
Hello, I'm trying to check the size of the return list in one of my
method in DAO. But it always return 0;
When executing "mvn test -Dtest=NameDaoTest" does it create and populate
new data in my database? I noticed that all my data in database is gone.
I guest it automatically call the "mvn hib