DBUnit « Tools « Java Testing Q&A

Home
Java Testing Q&A
1.Development
2.FindBugs
3.HTMLUnit
4.hudson
5.junit
6.performance
7.plugin
8.profile
9.selenium
10.Tools
11.unit test
Java Testing Q&A » Tools » DBUnit 

1. NoSuchTableException being thrown from dbunit test cases    stackoverflow.com

I'm trying to fix the test suite on an project which I've inherited from another programmer for some java database code. The project itself is using hibernate and MySQL for ...

2. DBUnit: Did not find column 'MYCOL' for 'MYSCHEMA .MYTABLE' in catalog 'MYDB' because names do not exactly match    stackoverflow.com

I am having trouble creating an export of my database using an org.dbunit.database.QueryDataSet. When I call org.dbunit.dataset.xml.FlatXmlDataSet.write(IDataSet, OutputStream), I get the following stack trace:

java.lang.IllegalStateException: Did not find column 'MYCOL' for ...

3. Is there any way for DBUnit to automatically create tables?    stackoverflow.com

I just realized that DBUnit doesn't create tables by itself (see How do I test with DBUnit with plain JDBC and HSQLDB without facing a NoSuchTableException?). Is there any way for ...

4. DBUnit, run insert-select statement    stackoverflow.com

I use DbUnit to load data into a DB for some integration tests. The data is specified in a flat XML file like so:

<user id="2" name="bob" type="user">
<user id="1" name="john" type="admin">
However in ...

5. Date relative to current in the DBUnit dataset    stackoverflow.com

I'm wondering if there is any way to specify for example tomorrow as date in the DBUnit XML dataset. Sometimes code logic is different for dates in future and dates in ...

6. DbUnit - Warning: AbstractTableMetaData    stackoverflow.com

I am using DbUnit in the latest version 2.4.8 and I get many warnings in my Unit tests with this message:

WARN : org.dbunit.dataset.AbstractTableMetaData - 
Potential problem found: The configured data type ...

7. DBUnit dataset export by set of primary key    stackoverflow.com

I tried to export a dataset from an oracle database by a set of primery keys using:

TablesDependencyHelper.getDataset(connection, fullTableName , 
            ...

8. DBunit and dataset column    stackoverflow.com

I want to try to make unit test with DBUnit but I have a problem with my dataset. Here is my persistence object:

@Entity
@Table(name = "personnes")
public class Personne implements Serializable {
   ...

9. Confusion about column types in dbunit and creating dtd for datasets    stackoverflow.com

I would appreciate some help with using dbunit. I use postgresql9 as db. I created table book using hibernate's hbm2ddl tool. I wanted to create some xmldatasets for testing with dbunit.Using the ant DBUnit ...

10. DBUnit    coderanch.com

Hi, im having trouble performing assertions of datasets and tables due to null values in some of the columns. Consider the table TBL with columns COL1, COL2, COL3, COL4 COL5 and COL3 is optional. My initial dataset would look like this (as this would be the norm for a row in this table): Now, ...

11. DBUnit, why insert test data, only to delete/re-create tables after?    coderanch.com

DBUnit, why insert test data, only to delete/re-create tables after? (Java in General forum at JavaRanch) A friendly place for programming greenhorns! Register / Login Java Forums Java Java in General DBUnit, why insert test data, only to delete/re-create tables after? Post by: James Elsey, Ranch Hand on Jan 17, 2010 04:15:45 Hi, I'm having a rather strange issue ...

12. DBunit    forums.oracle.com

13. dbunit doubt    forums.oracle.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.