Dbunit

DBUnit is very nice for testing database content changes made by an application. You define in XML the data including the structure of your tables (dataset.xml). Simple_Data is the name of the table and each column is a attribute in the xml doc with the content value e.g. id with value 1. The Getting Started [...]

Continue reading about Dbunit with JUnit 4.x and Spring for testing Oracle DB Application

ralf on May 16th, 2008

For testing database based applications with more or less fixed schema dbunit is nice for creating test data. There are several ways of defining the data in xml and loading it into the db. With the FlatXmlDataSet it looks like The first row defines the schema for dbunit with this format. When you have self [...]

Continue reading about dbunit and null values

If you are using DBUnit as tool for set up test environment in your oracle 10g then you have to provide the username of course. Normally it isn’t case sensitive in most tools. The jdbc driver or sqlplus let you create connection with lower case. DBUnit ask the DataBaseMetaData to get the defined tables in [...]

Continue reading about jdbc DataBaseMetaData + oracle 10g + dbunit + username..