You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(7) |
Aug
(37) |
Sep
|
Oct
|
Nov
(1) |
Dec
(22) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(8) |
Feb
(68) |
Mar
(72) |
Apr
(149) |
May
(32) |
Jun
(46) |
Jul
(26) |
Aug
(59) |
Sep
(25) |
Oct
(18) |
Nov
(4) |
Dec
(3) |
2004 |
Jan
(90) |
Feb
(19) |
Mar
(38) |
Apr
(41) |
May
(44) |
Jun
(2) |
Jul
(10) |
Aug
|
Sep
(14) |
Oct
|
Nov
(1) |
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(15) |
Jun
(1) |
Jul
|
Aug
(9) |
Sep
|
Oct
(17) |
Nov
|
Dec
|
2006 |
Jan
(1) |
Feb
(16) |
Mar
|
Apr
(1) |
May
(48) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(29) |
2007 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
(23) |
Mar
(31) |
Apr
|
May
(26) |
Jun
(6) |
Jul
(1) |
Aug
|
Sep
(7) |
Oct
(1) |
Nov
(8) |
Dec
(8) |
2009 |
Jan
(5) |
Feb
(9) |
Mar
(1) |
Apr
|
May
(23) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
(9) |
Oct
(28) |
Nov
(18) |
Dec
(8) |
2010 |
Jan
(19) |
Feb
(24) |
Mar
(3) |
Apr
|
May
(5) |
Jun
(4) |
Jul
|
Aug
(1) |
Sep
(11) |
Oct
|
Nov
(2) |
Dec
(1) |
2011 |
Jan
|
Feb
(7) |
Mar
|
Apr
(6) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(32) |
Oct
(6) |
Nov
|
Dec
|
From: <jb...@us...> - 2009-12-27 21:36:27
|
Revision: 1132 http://dbunit.svn.sourceforge.net/dbunit/?rev=1132&view=rev Author: jbhurst Date: 2009-12-27 21:36:20 +0000 (Sun, 27 Dec 2009) Log Message: ----------- [2905970] - Upgrade to POI Version 3.5-FINAL. Thanks pkamm. Modified Paths: -------------- trunk/dbunit/pom.xml trunk/dbunit/src/changes/changes.xml trunk/dbunit/src/java/org/dbunit/dataset/excel/XlsTable.java trunk/dbunit/src/site/xdoc/components.xml trunk/dbunit/src/site/xdoc/migration.xml Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-12-27 19:22:13 UTC (rev 1131) +++ trunk/dbunit/pom.xml 2009-12-27 21:36:20 UTC (rev 1132) @@ -256,7 +256,7 @@ <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> - <version>3.2-FINAL</version> + <version>3.5-FINAL</version> <optional>true</optional> </dependency> Modified: trunk/dbunit/src/changes/changes.xml =================================================================== --- trunk/dbunit/src/changes/changes.xml 2009-12-27 19:22:13 UTC (rev 1131) +++ trunk/dbunit/src/changes/changes.xml 2009-12-27 21:36:20 UTC (rev 1132) @@ -14,6 +14,7 @@ <action dev="gommma" type="fix" issue="2887115" due-to="unwissender2009">SQL: "Create Domain" ... Data Types are not supported.</action> <action dev="jbhurst" type="add" issue="2875253" due-to="caseylucas">Additional refinements for Oracle SDO_GEOMETRY datatype</action> <action dev="jbhurst" type="add" issue="2921131" due-to="vlamp">Add timezone support for timestamp data type</action> + <action dev="jbhurst" type="add" issue="2905970" due-to="pkamm">Upgrade to POI Version 3.5-FINAL</action> </release> <release version="2.4.7" date="Nov 09, 2009" description="Bugfixes and some non breaking refactoring"> <action dev="gommma" type="fix" issue="2685615" due-to="lumpynose">dtd for XmlDataSet</action> Modified: trunk/dbunit/src/java/org/dbunit/dataset/excel/XlsTable.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/dataset/excel/XlsTable.java 2009-12-27 19:22:13 UTC (rev 1131) +++ trunk/dbunit/src/java/org/dbunit/dataset/excel/XlsTable.java 2009-12-27 21:36:20 UTC (rev 1132) @@ -30,9 +30,9 @@ import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFCellStyle; -import org.apache.poi.hssf.usermodel.HSSFDateUtil; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; +import org.apache.poi.ss.usermodel.DateUtil; import org.dbunit.dataset.AbstractTable; import org.dbunit.dataset.Column; import org.dbunit.dataset.DataSetException; @@ -150,7 +150,7 @@ { case HSSFCell.CELL_TYPE_NUMERIC: HSSFCellStyle style = cell.getCellStyle(); - if (HSSFDateUtil.isCellDateFormatted(cell)) + if (DateUtil.isCellDateFormatted(cell)) { return getDateValue(cell); } @@ -203,7 +203,7 @@ logger.debug("getDateValue(cell={}) - start", cell); double numericValue = cell.getNumericCellValue(); - Date date = HSSFDateUtil.getJavaDate(numericValue); + Date date = DateUtil.getJavaDate(numericValue); // Add the timezone offset again because it was subtracted automatically by Apache-POI (we need UTC) long tzOffset = TimeZone.getDefault().getOffset(date.getTime()); date = new Date(date.getTime() + tzOffset); Modified: trunk/dbunit/src/site/xdoc/components.xml =================================================================== --- trunk/dbunit/src/site/xdoc/components.xml 2009-12-27 19:22:13 UTC (rev 1131) +++ trunk/dbunit/src/site/xdoc/components.xml 2009-12-27 21:36:20 UTC (rev 1132) @@ -1,24 +1,24 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <document><properties><title>Core Components</title></properties><body><section> - + <h3>Core Components</h3> - <p>This document attemps to give you an overview of the core classes that make up DbUnit. + <p>This document attemps to give you an overview of the core classes that make up DbUnit. Following are the core interfaces or abstract classes: - + <table border="1"> - <tr> + <tr> <th>Class</th> <th>Description</th> </tr> - <tr> + <tr> <td><a href="#databaseconnection">IDatabaseConnection</a></td> <td>Interface representing a DbUnit connection to a database.</td> </tr> - <tr> + <tr> <td><a href="#dataset">IDataSet</a></td> <td>Interface representing a collection of tables.</td> </tr> - <tr> + <tr> <td><a href="#databaseoperation">DatabaseOperation</a></td> <td>Abstract class representing an operation performed on the database before and after each test.</td> </tr> @@ -26,72 +26,72 @@ </p> <h3><a name="databaseconnection">IDatabaseConnection</a></h3> - <p>The <a href="apidocs/org/dbunit/database/IDatabaseConnection.html">IDatabaseConnection</a> interface represents - a DbUnit connection to a database. - + <p>The <a href="apidocs/org/dbunit/database/IDatabaseConnection.html">IDatabaseConnection</a> interface represents + a DbUnit connection to a database. + <table border="1"> - <tr> + <tr> <th>Class</th> <th>Description</th> </tr> - <tr> + <tr> <td><a href="apidocs/org/dbunit/database/DatabaseConnection.html">DatabaseConnection</a></td> <td>Wraps a JDBC connection.</td> </tr> - <tr> + <tr> <td><a href="apidocs/org/dbunit/database/DatabaseDataSourceConnection.html">DatabaseDataSourceConnection</a></td> <td>Wraps a JDBC DataSource.</td> </tr> </table> </p> - + <h3><a name="dataset">IDataSet</a></h3> - <p>The <a href="apidocs/org/dbunit/dataset/IDataSet.html">IDataSet</a> interface represents is a collection - of tables. This is the primary abstraction used by DbUnit to manipulate tabular data. + <p>The <a href="apidocs/org/dbunit/dataset/IDataSet.html">IDataSet</a> interface represents is a collection + of tables. This is the primary abstraction used by DbUnit to manipulate tabular data. </p> - <p>Most commonly used implemetations: + <p>Most commonly used implemetations: <table border="1"> - <tr> + <tr> <th>Implementation</th> <th>Description</th> </tr> - <tr> + <tr> <td><a name="flatxmldataset" href="apidocs/org/dbunit/dataset/xml/FlatXmlDataSet.html">FlatXmlDataSet</a></td> - <td> - Reads and writes flat XML dataset document. Each XML element corresponds to a table row. - Each XML element name corresponds to a table name. The XML attributes + <td> + Reads and writes flat XML dataset document. Each XML element corresponds to a table row. + Each XML element name corresponds to a table name. The XML attributes correspond to table columns.<br/> Flat XML dataset document sample: <source><![CDATA[ <!DOCTYPE dataset SYSTEM "my-dataset.dtd"> <dataset> - <TEST_TABLE COL0="row 0 col 0" + <TEST_TABLE COL0="row 0 col 0" COL1="row 0 col 1" - COL2="row 0 col 2"/> + COL2="row 0 col 2"/> <TEST_TABLE COL1="row 1 col 1"/> - <SECOND_TABLE COL0="row 0 col 0" + <SECOND_TABLE COL0="row 0 col 0" COL1="row 0 col 1" /> <EMPTY_TABLE/> </dataset>]]></source> <br/> - To specify null values, omit corresponding attribute. + To specify null values, omit corresponding attribute. In the above example, missing COL0 and COL2 attributes of TEST_TABLE second row represents null values. <br/> Table metadata is deduced from the first row of each table by default, whereas it is possible to enable the <i>column sensing</i> feature as described in <a name="FAQ-differentcolumnnumber" href="faq.html#differentcolumnnumber">differentcolumnnumber</a> <b>Beware you may get a NoSuchColumnException if the first row of a table has one or more null values.</b> - Because of that, this is highly recommended to use DTD. DbUnit will use the - columns declared in the DTD as table metadata. DbUnit only support external system URI. + Because of that, this is highly recommended to use DTD. DbUnit will use the + columns declared in the DTD as table metadata. DbUnit only support external system URI. The URI can be absolute or relative. <br/> Another way to cope with this problem is to use the <a href= "#replacementdataset">ReplacementDataSet</a>. - + </td> </tr> - <tr> + <tr> <td><a name="xmldataset" href="apidocs/org/dbunit/dataset/xml/XmlDataSet.html">XmlDataSet</a></td> <td> - Reads and writes original XML dataset document. This format + Reads and writes original XML dataset document. This format is very verbose and must conform to the following DTD: <source><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> @@ -141,13 +141,13 @@ <br/> </td> </tr> - <tr> + <tr> <td><a name="streamingdataset" href="apidocs/org/dbunit/database/StreamingDataSet.html">StreamingDataSet</a></td> <td>Consumes a producer and expose its content as a dataset. Provides cursor like forward only access to it and only keeps the active row in memory. Can be used with FlatXmlProducer and XmlProvider. <br/> This is a very efficient way to load XML dataset document when working with forward only database operations (UPDATE, INSERT, REFRESH). <br/> -Following sample shows how to load a flat XML dataset with the StreamingDataSet: +Following sample shows how to load a flat XML dataset with the StreamingDataSet: <source> IDataSetProducer producer = new FlatXmlProducer( new InputSource("dataset.xml")); @@ -155,13 +155,13 @@ </source> </td> </tr> - <tr> + <tr> <td><a name="databasedataset" href="apidocs/org/dbunit/database/DatabaseDataSet.html">DatabaseDataSet</a></td> - <td>Adapter that provides access - to a database instance as a dataset. This class is not usually instantiated + <td>Adapter that provides access + to a database instance as a dataset. This class is not usually instantiated directly but from the factory method <code>IDatabaseConnection.createDataSet()</code>.</td> </tr> - <tr> + <tr> <td><a name="querydataset" href="apidocs/org/dbunit/database/QueryDataSet.html">QueryDataSet</a></td> <td>Holds collection of tables resulting from database queries. <br/> @@ -174,41 +174,41 @@ </td> </tr> - <tr> + <tr> <td><a name="defaultdataset" href="apidocs/org/dbunit/dataset/DefaultDataSet.html">DefaultDataSet</a></td> <td>Uses to create datasets programmatically.</td> </tr> - <tr> + <tr> <td><a name="compositedataset" href="apidocs/org/dbunit/dataset/CompositeDataSet.html">CompositeDataSet</a></td> <td>Combines multiple datasets into a single logical dataset.</td> </tr> - <tr> + <tr> <td><a name="filtereddataset" href="apidocs/org/dbunit/dataset/FilteredDataSet.html">FilteredDataSet</a></td> <td>Decorator that exposes only some tables from decorated dataset. Can be used with different filtering strategies. Some strategies can include/exclude tables without altering their order while others expose tables with a different order. <table border="1"> - <tr> + <tr> <th>Strategy</th> <th>Description</th> </tr> - <tr> + <tr> <td>IncludeTableFilter</td> <td>Exposes only matching tables pattern without modifying the original table order. Support wildcards. </td> </tr> - <tr> + <tr> <td>ExcludeTableFilter </td> <td>Hides matching tables pattern without modifying the original table order. Support wildcards.</td> </tr> - <tr> + <tr> <td>SequenceTableFilter </td> <td>Exposes a configured table sequence and can be used to reorder dataset table. This is the original filtering strategy from DbUnit 1.x. </td> </tr> - <tr> + <tr> <td>DatabaseSequenceFilter</td> - <td> Automatically determine the tables order using foreign/exported keys information. - This strategy is vendor - independent and should work with any JDBC driver that implement the - <code>DatabaseMetaData.getExportedKeys()</code> method. + <td> Automatically determine the tables order using foreign/exported keys information. + This strategy is vendor + independent and should work with any JDBC driver that implement the + <code>DatabaseMetaData.getExportedKeys()</code> method. <br/> Support simple multi-level dependency like this: <source> @@ -224,13 +224,14 @@ </td> </tr> - <tr> + <tr> <td><a name="xlsdataset" href="apidocs/org/dbunit/dataset/excel/XlsDataSet.html">XlsDataSet</a></td> <td>Read and writes MS Excel dataset documents. Each sheet represents a table. The first row of a sheet defines the columns names and remaining rows contains the data.</td> + <td><b>Note:</b> You need to include Apache POI version 3.5-FINAL or later in your classpath to use XmlDataSet.</td> </tr> - <tr> + <tr> <td><a name= "replacementdataset" href="apidocs/org/dbunit/dataset/ReplacementDataSet.html">ReplacementDataSet</a></td> <td>Decorator that replaces placeholder objects from the decorated dataset with replacement objects. Substring substitution is also possible. <br/> @@ -239,19 +240,19 @@ <source><![CDATA[ <?xml version="1.0"?> <dataset> - <TEST_TABLE COL0="row 0 col 0" - COL1="[null]"/> + <TEST_TABLE COL0="row 0 col 0" + COL1="[null]"/> <TEST_TABLE COL1="row 1 col 0" - COL2="row 1 col 1"/> + COL2="row 1 col 1"/> </dataset>]]></source> <br/> Loading the flat XML dataset: <source><![CDATA[ ReplacementDataSet dataSet = new ReplacementDataSet( - new FlatXmlDataSet(\x85)); + new FlatXmlDataSet(\x85)); dataSet.addReplacementObject("[NULL]", null);]]></source> <br/> - You can choose to use a fail-fast replacement to ensure that all placeholders are actually set + You can choose to use a fail-fast replacement to ensure that all placeholders are actually set and no one is missing in the replacement map. If one is missing the replacement will fail immediately throwing an exception. (Note that the default behaviour is to leave the non-replaced placeholder there and proceeding work silently): <source>replacementDataSet.setStrictReplacement(true);</source> @@ -262,80 +263,80 @@ </p> <h3><a name="databaseoperation">DatabaseOperation</a></h3> <p><a href="apidocs/org/dbunit/operation/DatabaseOperation.html">DatabaseOperation</a> is an abstract class that represents an operation performed on the database before and after each test. </p> - <p>The two most usefull operations are <a href="#refresh">REFRESH</a> and - <a href="#cleanInsert">CLEAN_INSERT</a>. They - are the ones you will deal usualy with. They represent two + <p>The two most usefull operations are <a href="#refresh">REFRESH</a> and + <a href="#cleanInsert">CLEAN_INSERT</a>. They + are the ones you will deal usualy with. They represent two testing strategies with different benefits and tradeoffs. </p> <table border="1"> - <tr> + <tr> <th>Operation</th> <th>Description</th> </tr> - <tr> + <tr> <td><a href="apidocs/org/dbunit/operation/UpdateOperation.html">DatabaseOperation.UPDATE</a></td> - <td>This operation updates the database from the dataset contents. This operation - assumes that table data already exists in the target database and fails + <td>This operation updates the database from the dataset contents. This operation + assumes that table data already exists in the target database and fails if this is not the case.</td> </tr> - <tr> + <tr> <td><a name="insert" href="apidocs/org/dbunit/operation/InsertOperation.html">DatabaseOperation.INSERT</a></td> - <td>This operation inserts the dataset contents into the database. This operation - assumes that table data does not exist in the target database and fails - if this is not the case. To prevent problems with foreign keys, tables must + <td>This operation inserts the dataset contents into the database. This operation + assumes that table data does not exist in the target database and fails + if this is not the case. To prevent problems with foreign keys, tables must be sequenced appropriately in the dataset.</td> </tr> - <tr> + <tr> <td><a name="delete" href="apidocs/org/dbunit/operation/DeleteOperation.html">DatabaseOperation.DELETE</a></td> - <td>This operation deletes only the dataset contents from the database. This - operation does not delete the entire table contents but only data that are + <td>This operation deletes only the dataset contents from the database. This + operation does not delete the entire table contents but only data that are present in the dataset.</td> </tr> - <tr> + <tr> <td><a name="deleteall" href="apidocs/org/dbunit/operation/DeleteAllOperation.html">DatabaseOperation.DELETE_ALL</a></td> <td>Deletes all rows of tables present in the specified dataset. If the dataset does not contains a particular table, but that table exists in the database, the database table is not affected. Table are truncated in reverse sequence.</td> </tr> - <tr> + <tr> <td><a name="truncate" href="apidocs/org/dbunit/operation/TruncateTableOperation.html">DatabaseOperation.TRUNCATE</a></td> - <td>Truncate tables present in the specified dataset. If the dataset does not contains a particular table, but that table exists in the database, the database table is not affected. Table are truncated in reverse sequence. + <td>Truncate tables present in the specified dataset. If the dataset does not contains a particular table, but that table exists in the database, the database table is not affected. Table are truncated in reverse sequence. </td> </tr> - <tr> + <tr> <td><a name="refresh" href="apidocs/org/dbunit/operation/RefreshOperation.html">DatabaseOperation.REFRESH</a></td> - <td>This operation literally refreshes dataset contents into the target database. - This means that data of existing rows are updated and non-existing row get - inserted. Any rows which exist in the database but not in dataset stay unaffected. - This approach is more appropriate for tests that assume other data may exist + <td>This operation literally refreshes dataset contents into the target database. + This means that data of existing rows are updated and non-existing row get + inserted. Any rows which exist in the database but not in dataset stay unaffected. + This approach is more appropriate for tests that assume other data may exist in the database.<br/> - if they are correctly written, tests using this strategy can even be performed + if they are correctly written, tests using this strategy can even be performed on a populated database like a copy of a production database.</td> </tr> - <tr> + <tr> <td><a name="cleanInsert">DatabaseOperation.CLEAN_INSERT</a></td> - <td>This composite operation performs a <a href="#deleteall">DELETE_ALL</a> operation followed by an - <a href="#insert">INSERT</a> operation. This is the safest approach to ensure that the database - is in a known state. This is appropriate for tests that require the database + <td>This composite operation performs a <a href="#deleteall">DELETE_ALL</a> operation followed by an + <a href="#insert">INSERT</a> operation. This is the safest approach to ensure that the database + is in a known state. This is appropriate for tests that require the database to only contain a specific set of data.</td> </tr> - <tr> + <tr> <td>DatabaseOperation.NONE</td> <td>Empty operation that does absolutely nothing.</td> </tr> - <tr> + <tr> <td><a href="apidocs/org/dbunit/operation/CompositeOperation.html">CompositeOperation</a></td> <td>This operation combines multiple operations into a single one.</td> </tr> - <tr> + <tr> <td><a href="apidocs/org/dbunit/operation/TransactionOperation.html">TransactionOperation</a></td> - <td>This operation decorates an operation and executes it within the context + <td>This operation decorates an operation and executes it within the context of a transaction.</td> </tr> - <tr> + <tr> <td><a name="InsertIdentityOperation" href="apidocs/org/dbunit/ext/mssql/InsertIdentityOperation.html">InsertIdentityOperation</a></td> - <td>This operation decorates an insert operation and disables the MS SQL - Server automatic identifier generation (IDENTITY) during its execution. - Use following constants InsertIdentityOperation.INSERT, InsertIdentityOperation.CLEAN_INSERT + <td>This operation decorates an insert operation and disables the MS SQL + Server automatic identifier generation (IDENTITY) during its execution. + Use following constants InsertIdentityOperation.INSERT, InsertIdentityOperation.CLEAN_INSERT or InsertIdentityOperation.REFRESH instead of those defined in DatabaseOperation.</td> </tr> </table> Modified: trunk/dbunit/src/site/xdoc/migration.xml =================================================================== --- trunk/dbunit/src/site/xdoc/migration.xml 2009-12-27 19:22:13 UTC (rev 1131) +++ trunk/dbunit/src/site/xdoc/migration.xml 2009-12-27 21:36:20 UTC (rev 1132) @@ -6,7 +6,31 @@ <h2>Migration guide</h2> <p>To migrate from an older DbUnit release to a newer one you can find some useful information here.</p> - + + <subsection name="2.4.7 to 2.4.8"> + <p>There is a change to dependencies. + <table border="1"> + <tr> + <th>Tracker #</th> + <th>Affects</th> + <th>Migration</th> + <th>Background information</th> + </tr> + + <tr> + <td>2905970</td> + <td>XlsDataSet</td> + <td>Upgrade to POI 3.5-FINAL or later. + <td>POI moved static utility methods from org.apache.poi.hssf.usermodel.HSSFDateUtil to a superclass. + This required a recompile against the new version, and clients will need to use the new version. + </td> + </td> + </tr> + </table> + </p> + </subsection> + + </subsection> <subsection name="2.4.3 to 2.4.4"> <p>There has been a very small change to the API.</p> <table border="1"> @@ -17,42 +41,42 @@ <th>Background information</th> </tr> - <tr> + <tr> <td>2567724</td> <td><code>new method org.dbunit.IDatabaseTester#setOperationListener()</code></td> <td>If you extend from AbstractDatabaseTester then there is nothing to do. If you implement the IDatabaseTester interface then you must support the methods of IOperationListener. As reference implementation you can look at the AbstractDatabaseTester.</td> - <td>This change was necessary to ensure that the user defined IDatabaseConnection setup provided by + <td>This change was necessary to ensure that the user defined IDatabaseConnection setup provided by <code>DatabaseTestCase#setUpDatabaseConfig(DatabaseConfig databaseConfig)</code> is also used in the setUp and tearDown operations. </td> </tr> - <tr> + <tr> <td>1956543</td> <td><code>new method org.dbunit.database.IDatabaseConnection#createTable(String tableName, PreparedStatement preparedStatement)</code></td> <td>If you extend from AbstractDatabaseConnection then there is nothing to do. If you implement the IDatabaseConnection interface then you must implement the new method. As reference implementation you can look into AbstractDatabaseConnection.</td> - <td>This addition comes from the feature request + <td>This addition comes from the feature request <a href='https://sourceforge.net/tracker/index.php?func=detail&aid=1956543&group_id=47439&atid=449494'>1956543</a> where you can read details about why this is useful. </td> </tr> - <tr> + <tr> <td>1956543</td> <td><code>new method org.dbunit.database.IResultSetTableFactory#createTable(String tableName, PreparedStatement preparedStatement, IDatabaseConnection connection)</code></td> <td>If you provide a custom IResultSetTableFactory then you have to implement this new method. As reference implementation you can look into ForwardOnlyResultSetTableFactory.</td> - <td>This addition comes from the feature request + <td>This addition comes from the feature request <a href='https://sourceforge.net/tracker/index.php?func=detail&aid=1956543&group_id=47439&atid=449494'>1956543</a> where you can read details about why this is useful. </td> </tr> </table> </subsection> - + <subsection name="2.4.2 to 2.4.3"> <p>There has been a very small change to the API.</p> <table border="1"> @@ -63,20 +87,20 @@ <th>Background information</th> </tr> - <tr> + <tr> <td>2023994</td> <td><code>org.dbunit.DBTestCase#getConnection() is final</code></td> - <td>To control the creation of the IDatabaseConnection, override method DBTestCase#newDatabaseTester() which provides + <td>To control the creation of the IDatabaseConnection, override method DBTestCase#newDatabaseTester() which provides the connection via IDatabaseTester#getConnection()</td> - <td>The method DBTestCase#getConnection() is now final and the master object for retrieving a - connection here is the IDatabaseTester. It is created via the DBTestCase#newDatabaseTester() - method and provides the database connection via IDatabaseTester#getConnection. The reason for + <td>The method DBTestCase#getConnection() is now final and the master object for retrieving a + connection here is the IDatabaseTester. It is created via the DBTestCase#newDatabaseTester() + method and provides the database connection via IDatabaseTester#getConnection. The reason for this change is firstly to provide a consistent access to the database connection - and secondly to allow the user to easily configure dbunit properties by overriding the + and secondly to allow the user to easily configure dbunit properties by overriding the method setUpDatabaseConfig(DatabaseConfig databaseConfig). </td> </tr> - <tr> + <tr> <td>2023994</td> <td><code>Removed setters from org.dbunit.JdbcDatabaseTester and added constructors</code></td> <td>Just invoke the appropriate constructor of JdbcDatabaseTester</td> @@ -108,7 +132,7 @@ (or copy-pasted) multiple times before. </td> </tr> - + <tr> <td>1961269</td> <td><code>org.dbunit.dataset.datatype.IDataTypeFactory.createDataType(int sqlType, String sqlTypeName, String tableName, String columnName)</code></td> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-12-27 19:22:27
|
Revision: 1131 http://dbunit.svn.sourceforge.net/dbunit/?rev=1131&view=rev Author: jbhurst Date: 2009-12-27 19:22:13 +0000 (Sun, 27 Dec 2009) Log Message: ----------- [2921131] - Add timezone support for timestamp data type. Thanks Volker Lamp. Modified Paths: -------------- trunk/dbunit/src/changes/changes.xml trunk/dbunit/src/java/org/dbunit/dataset/datatype/TimestampDataType.java trunk/dbunit/src/test/org/dbunit/dataset/datatype/TimestampDataTypeTest.java Modified: trunk/dbunit/src/changes/changes.xml =================================================================== --- trunk/dbunit/src/changes/changes.xml 2009-12-27 18:47:30 UTC (rev 1130) +++ trunk/dbunit/src/changes/changes.xml 2009-12-27 19:22:13 UTC (rev 1131) @@ -13,6 +13,7 @@ <release version="2.4.8" date="TBD" description="TBD"> <action dev="gommma" type="fix" issue="2887115" due-to="unwissender2009">SQL: "Create Domain" ... Data Types are not supported.</action> <action dev="jbhurst" type="add" issue="2875253" due-to="caseylucas">Additional refinements for Oracle SDO_GEOMETRY datatype</action> + <action dev="jbhurst" type="add" issue="2921131" due-to="vlamp">Add timezone support for timestamp data type</action> </release> <release version="2.4.7" date="Nov 09, 2009" description="Bugfixes and some non breaking refactoring"> <action dev="gommma" type="fix" issue="2685615" due-to="lumpynose">dtd for XmlDataSet</action> Modified: trunk/dbunit/src/java/org/dbunit/dataset/datatype/TimestampDataType.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/dataset/datatype/TimestampDataType.java 2009-12-27 18:47:30 UTC (rev 1130) +++ trunk/dbunit/src/java/org/dbunit/dataset/datatype/TimestampDataType.java 2009-12-27 19:22:13 UTC (rev 1131) @@ -26,6 +26,10 @@ import java.sql.SQLException; import java.sql.Timestamp; import java.sql.Types; +import java.text.DateFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Date; import org.dbunit.dataset.ITable; import org.slf4j.Logger; @@ -83,28 +87,31 @@ { String stringValue = (String)value; - // Probably a java.sql.Date, try it just in case! - if (stringValue.length() == 10) - { - try - { - long time = java.sql.Date.valueOf(stringValue).getTime(); - return new java.sql.Timestamp(time); - } - catch (IllegalArgumentException e) - { - // Was not a java.sql.Date, let Timestamp handle this value - } - } + String[] patterns = { + "yyyy-MM-dd HH:mm:ss.SSS Z", + "yyyy-MM-dd HH:mm:ss.SSS", + "yyyy-MM-dd HH:mm:ss Z", + "yyyy-MM-dd HH:mm:ss", + "yyyy-MM-dd HH:mm Z", + "yyyy-MM-dd HH:mm", + "yyyy-MM-dd Z", + "yyyy-MM-dd" + }; - try - { - return java.sql.Timestamp.valueOf(stringValue); + for (int i = 0; i < patterns.length; ++i) { + String p = patterns[i]; + try + { + DateFormat df = new SimpleDateFormat(p); + Date date = df.parse(stringValue); + return new java.sql.Timestamp(date.getTime()); + } + catch (ParseException e) + { + if (i < patterns.length) continue; + throw new TypeCastException(value, this, e); + } } - catch (IllegalArgumentException e) - { - throw new TypeCastException(value, this, e); - } } throw new TypeCastException(value, this); Modified: trunk/dbunit/src/test/org/dbunit/dataset/datatype/TimestampDataTypeTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/dataset/datatype/TimestampDataTypeTest.java 2009-12-27 18:47:30 UTC (rev 1130) +++ trunk/dbunit/src/test/org/dbunit/dataset/datatype/TimestampDataTypeTest.java 2009-12-27 19:22:13 UTC (rev 1131) @@ -28,6 +28,9 @@ import java.sql.Time; import java.sql.Timestamp; import java.sql.Types; +import java.util.Calendar; +import java.util.GregorianCalendar; +import java.util.TimeZone; /** * @author Manuel Laflamme @@ -69,6 +72,35 @@ assertEquals("is date/time", true, THIS_TYPE.isDateTime()); } + private static Timestamp makeTimestamp(int year, int month, int day, int hour, int minute, int second, int millis, TimeZone timeZone) + { + Calendar cal = new GregorianCalendar(timeZone); + cal.clear(); + cal.set(year, month, day, hour, minute, second); + cal.set(Calendar.MILLISECOND, millis); + return new Timestamp(cal.getTime().getTime()); + } + + private static Timestamp makeTimestamp(int year, int month, int day, int hour, int minute, int second, int millis, String timeZone) + { + return makeTimestamp(year, month, day, hour, minute, second, millis, TimeZone.getTimeZone(timeZone)); + } + + private static Timestamp makeTimestamp(int year, int month, int day, int hour, int minute, int second, int millis) + { + return makeTimestamp(year, month, day, hour, minute, second, millis, TimeZone.getDefault()); + } + + private static Timestamp makeTimestamp(int year, int month, int day, int hour, int minute, int second, String timeZone) + { + return makeTimestamp(year, month, day, hour, minute, second, 0, TimeZone.getTimeZone(timeZone)); + } + + private static Timestamp makeTimestamp(int year, int month, int day, int hour, int minute, int second) + { + return makeTimestamp(year, month, day, hour, minute, second, 0, TimeZone.getDefault()); + } + public void testTypeCast() throws Exception { Object[] values = { @@ -79,6 +111,11 @@ new Timestamp(1234).toString(), new Date(1234).toString(), new java.util.Date(1234), + "1995-01-07 01:22:41.923 -0500", + "1995-01-07 01:22:41.923", + "1995-01-07 01:22:41 -0500", + "1995-01-07 01:22:41", + "2008-11-27 14:52:38 +0100" }; Timestamp[] expected = { @@ -89,6 +126,11 @@ new Timestamp(1234), new Timestamp(Date.valueOf((new Date(1234).toString())).getTime()), new Timestamp(1234), + makeTimestamp(1995, 0, 7, 1, 22, 41, 923, "America/New_York"), + makeTimestamp(1995, 0, 7, 1, 22, 41, 923), + makeTimestamp(1995, 0, 7, 1, 22, 41, "America/New_York"), + makeTimestamp(1995, 0, 7, 1, 22, 41), + makeTimestamp(2008, 10, 27, 14, 52, 38, "Europe/Berlin") }; assertEquals("actual vs expected count", values.length, expected.length); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-12-27 18:47:38
|
Revision: 1130 http://dbunit.svn.sourceforge.net/dbunit/?rev=1130&view=rev Author: jbhurst Date: 2009-12-27 18:47:30 +0000 (Sun, 27 Dec 2009) Log Message: ----------- [2921090] - Replaced all references to SQLFeatureNotSupportedException with its ancestor class SQLException which is available in JDK 1.4. Thanks Volker Lamp. Modified Paths: -------------- trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java Modified: trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java 2009-12-27 18:39:09 UTC (rev 1129) +++ trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java 2009-12-27 18:47:30 UTC (rev 1130) @@ -24,7 +24,6 @@ import java.io.OutputStream; import java.sql.Blob; import java.sql.SQLException; -import java.sql.SQLFeatureNotSupportedException; /** * @author John Hurst @@ -54,46 +53,46 @@ public InputStream getBinaryStream() throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support getBinaryStream()"); + throw new SQLException("TestBlob does not support getBinaryStream()"); } public long position(byte[] pattern, long start) throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support position(byte[], long)"); + throw new SQLException("TestBlob does not support position(byte[], long)"); } public long position(Blob pattern, long start) throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support position(Blob, long)"); + throw new SQLException("TestBlob does not support position(Blob, long)"); } public int setBytes(long pos, byte[] bytes) throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support setBytes(long, byte[])"); + throw new SQLException("TestBlob does not support setBytes(long, byte[])"); } public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support setBytes(long, byte[], int, int)"); + throw new SQLException("TestBlob does not support setBytes(long, byte[], int, int)"); } public OutputStream setBinaryStream(long pos) throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support setBinaryStream(long)"); + throw new SQLException("TestBlob does not support setBinaryStream(long)"); } public void truncate(long len) throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support truncate(long)"); + throw new SQLException("TestBlob does not support truncate(long)"); } public void free() throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support free()"); + throw new SQLException("TestBlob does not support free()"); } public InputStream getBinaryStream(long pos, long length) throws SQLException { - throw new SQLFeatureNotSupportedException("TestBlob does not support getBinaryStream(long, long)"); + throw new SQLException("TestBlob does not support getBinaryStream(long, long)"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-12-27 18:39:18
|
Revision: 1129 http://dbunit.svn.sourceforge.net/dbunit/?rev=1129&view=rev Author: jbhurst Date: 2009-12-27 18:39:09 +0000 (Sun, 27 Dec 2009) Log Message: ----------- [2875235] - Moved HSQLDB dependency back to main profile, required for some random tests. Needs reworking to separate tests per database profile better. Modified Paths: -------------- trunk/dbunit/pom.xml Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-12-27 18:28:55 UTC (rev 1128) +++ trunk/dbunit/pom.xml 2009-12-27 18:39:09 UTC (rev 1129) @@ -227,6 +227,12 @@ <!-- TODO: add exclusion for dependencies that include xerces/xalan --> <dependency> + <groupId>hsqldb</groupId> + <artifactId>hsqldb</artifactId> + <version>1.8.0.1</version> + <scope>test</scope> + </dependency> + <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.2</version> @@ -631,14 +637,6 @@ <dbunit.profile.password></dbunit.profile.password> <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> </properties> - <dependencies> - <dependency> - <groupId>hsqldb</groupId> - <artifactId>hsqldb</artifactId> - <version>1.8.0.1</version> - <scope>test</scope> - </dependency> - </dependencies> </profile> <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 10 JDBC driver for Java 1.4 --> <profile> @@ -646,7 +644,7 @@ <properties> <dbunit.profile>oracle</dbunit.profile> <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.url>jdbc:oracle:thin:@localhost:1521:ORCL</dbunit.profile.url> <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> <dbunit.profile.user>dbunit</dbunit.profile.user> <dbunit.profile.password>dbunit</dbunit.profile.password> @@ -667,7 +665,7 @@ <properties> <dbunit.profile>oracle</dbunit.profile> <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.url>jdbc:oracle:thin:@localhost:1521:ORCL</dbunit.profile.url> <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> <dbunit.profile.user>dbunit</dbunit.profile.user> <dbunit.profile.password>dbunit</dbunit.profile.password> @@ -688,7 +686,7 @@ <properties> <dbunit.profile>oracle10</dbunit.profile> <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.url>jdbc:oracle:thin:@localhost:1521:ORCL</dbunit.profile.url> <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> <dbunit.profile.user>dbunit</dbunit.profile.user> <dbunit.profile.password>dbunit</dbunit.profile.password> @@ -709,7 +707,7 @@ <properties> <dbunit.profile>oracle10</dbunit.profile> <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.url>jdbc:oracle:thin:@localhost:1521:ORCL</dbunit.profile.url> <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> <dbunit.profile.user>dbunit</dbunit.profile.user> <dbunit.profile.password>dbunit</dbunit.profile.password> @@ -729,7 +727,7 @@ <properties> <dbunit.profile>postgresql</dbunit.profile> <dbunit.profile.driverClass>org.postgresql.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:postgresql://host/database</dbunit.profile.url> + <dbunit.profile.url>jdbc:postgresql://localhost/dbunit</dbunit.profile.url> <dbunit.profile.schema>public</dbunit.profile.schema> <dbunit.profile.user>dbunit</dbunit.profile.user> <dbunit.profile.password>dbunit</dbunit.profile.password> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-12-27 18:29:01
|
Revision: 1128 http://dbunit.svn.sourceforge.net/dbunit/?rev=1128&view=rev Author: jbhurst Date: 2009-12-27 18:28:55 +0000 (Sun, 27 Dec 2009) Log Message: ----------- [2887115] - Disabling this test until it can be reworked to fit in with other profiles and DbUnit test framework in general. Modified Paths: -------------- trunk/dbunit/src/test/org/dbunit/ext/postgresql/SQLHelperDomainPostgreSQLTest.java Modified: trunk/dbunit/src/test/org/dbunit/ext/postgresql/SQLHelperDomainPostgreSQLTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/ext/postgresql/SQLHelperDomainPostgreSQLTest.java 2009-12-15 21:18:08 UTC (rev 1127) +++ trunk/dbunit/src/test/org/dbunit/ext/postgresql/SQLHelperDomainPostgreSQLTest.java 2009-12-27 18:28:55 UTC (rev 1128) @@ -14,7 +14,7 @@ import org.xml.sax.InputSource; /** - * Testcase for Postgresql to check SQL CREATE DOMAIN with + * Testcase for Postgresql to check SQL CREATE DOMAIN with * FlatXmlDataSetBuilder to insert a dataset with SQL Domains (user-def-types). * @author Philipp S. (Unwissender2009) * @since Nov 23, 2009 @@ -22,13 +22,13 @@ public class SQLHelperDomainPostgreSQLTest extends TestCase{ private IDatabaseConnection _connection; - + private static final String xmlData = "<?xml version=\"1.0\"?>" + "<dataset>" + "<T1 PK=\"1\" STATE=\"is_blabla\"/>" + - "</dataset>"; - - + "</dataset>"; + + protected void setUp() throws Exception { super.setUp(); @@ -45,9 +45,13 @@ _connection = null; } } - - public void testDomainDataTypes() throws Exception { + public void testOk() + { + } + + public void xtestDomainDataTypes() throws Exception { + assertNotNull( "didn't get a connection", _connection ); Statement stat = _connection.getConnection().createStatement(); @@ -61,19 +65,19 @@ stat.execute("CREATE DOMAIN MYPK AS INTEGER DEFAULT 0;"); stat.execute("CREATE TABLE T1 (PK MYPK,STATE MYSTATE,PRIMARY KEY (PK));"); stat.close(); - + try{ ReplacementDataSet dataSet = new ReplacementDataSet( new FlatXmlDataSetBuilder().build( new InputSource( new StringReader(xmlData)) - )); + )); dataSet.addReplacementObject("[NULL]", null); dataSet.setStrictReplacement(true); - + //THE TEST -> hopefully with no exception!!! DatabaseOperation.CLEAN_INSERT.execute(_connection, dataSet); - + // Check Types. for(int i=0;i<_connection.createDataSet().getTableMetaData("T1").getColumns().length;i++) { @@ -82,7 +86,7 @@ if(c.getSqlTypeName().compareTo("mypk")==0) { assertEquals(java.sql.Types.INTEGER,c.getDataType().getSqlType()); - } + } else if(c.getSqlTypeName().compareTo("mystate")==0) { assertEquals(java.sql.Types.VARCHAR,c.getDataType().getSqlType()); @@ -97,5 +101,5 @@ assertEquals("DatabaseOperation.CLEAN_INSERT... no exception",""+e); } - } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-12-01 20:49:43
|
Revision: 1124 http://dbunit.svn.sourceforge.net/dbunit/?rev=1124&view=rev Author: jbhurst Date: 2009-12-01 20:49:33 +0000 (Tue, 01 Dec 2009) Log Message: ----------- [2875253] - Additional refinements for Oracle SDO_GEOMETRY datatype. Thanks Lucas Casey. Modified Paths: -------------- trunk/dbunit/src/changes/changes.xml trunk/dbunit/src/java/org/dbunit/dataset/datatype/StringDataType.java trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometryDataType.java trunk/dbunit/src/test/org/dbunit/dataset/datatype/StringDataTypeTest.java trunk/dbunit/src/test/org/dbunit/operation/UpdateOperationTest.java trunk/dbunit/src/xml/sdoGeometryUpdateTest.xml Added Paths: ----------- trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoElemInfoArray.java trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometry.java trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoHelper.java trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoOrdinateArray.java trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoPointType.java trunk/dbunit/src/test/org/dbunit/ext/oracle/OracleSdoGeometryDataTypeTest.java Modified: trunk/dbunit/src/changes/changes.xml =================================================================== --- trunk/dbunit/src/changes/changes.xml 2009-12-01 07:21:06 UTC (rev 1123) +++ trunk/dbunit/src/changes/changes.xml 2009-12-01 20:49:33 UTC (rev 1124) @@ -12,6 +12,7 @@ <body> <release version="2.4.8" date="TBD" description="TBD"> <action dev="gommma" type="fix" issue="2887115" due-to="unwissender2009">SQL: "Create Domain" ... Data Types are not supported.</action> + <action dev="jbhurst" type="add" issue="2875253" due-to="caseylucas">Additional refinements for Oracle SDO_GEOMETRY datatype</action> </release> <release version="2.4.7" date="Nov 09, 2009" description="Bugfixes and some non breaking refactoring"> <action dev="gommma" type="fix" issue="2685615" due-to="lumpynose">dtd for XmlDataSet</action> Modified: trunk/dbunit/src/java/org/dbunit/dataset/datatype/StringDataType.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/dataset/datatype/StringDataType.java 2009-12-01 07:21:06 UTC (rev 1123) +++ trunk/dbunit/src/java/org/dbunit/dataset/datatype/StringDataType.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -129,7 +129,11 @@ } } - throw new TypeCastException(value, this); + logger.warn("Unknown/unsupported object type '{}' - " + + "will invoke toString() as last fallback which " + + "might produce undesired results", + value.getClass().getName()); + return value.toString(); } public Object getSqlValue(int column, ResultSet resultSet) Added: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoElemInfoArray.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoElemInfoArray.java (rev 0) +++ trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoElemInfoArray.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -0,0 +1,177 @@ +/* + * + * The DbUnit Database Testing Framework + * Copyright (C)2002-2008, DbUnit.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +package org.dbunit.ext.oracle; + +import java.sql.SQLException; +import java.sql.Connection; +import oracle.jdbc.OracleTypes; +import oracle.sql.ORAData; +import oracle.sql.ORADataFactory; +import oracle.sql.Datum; +import oracle.sql.ARRAY; +import oracle.sql.ArrayDescriptor; +import oracle.jpub.runtime.MutableArray; + +/** + * This class was generated by oracle jpub. + * + * @see OracleSdoGeometryDataType + * @author cl...@e-... + * @author Last changed by: $Author$ + * @version $Revision$ $Date$ + * @since ? + */ +public class OracleSdoElemInfoArray implements ORAData, ORADataFactory +{ + public static final String _SQL_NAME = "MDSYS.SDO_ELEM_INFO_ARRAY"; + public static final int _SQL_TYPECODE = OracleTypes.ARRAY; + + MutableArray _array; + +private static final OracleSdoElemInfoArray _OracleSdoElemInfoArrayFactory = new OracleSdoElemInfoArray(); + + public static ORADataFactory getORADataFactory() + { return _OracleSdoElemInfoArrayFactory; } + /* constructors */ + public OracleSdoElemInfoArray() + { + this((java.math.BigDecimal[])null); + } + + public OracleSdoElemInfoArray(java.math.BigDecimal[] a) + { + _array = new MutableArray(2, a, null); + } + + /* ORAData interface */ + public Datum toDatum(Connection c) throws SQLException + { + return _array.toDatum(c, _SQL_NAME); + } + + /* ORADataFactory interface */ + public ORAData create(Datum d, int sqlType) throws SQLException + { + if (d == null) return null; + OracleSdoElemInfoArray a = new OracleSdoElemInfoArray(); + a._array = new MutableArray(2, (ARRAY) d, null); + return a; + } + + public int length() throws SQLException + { + return _array.length(); + } + + public int getBaseType() throws SQLException + { + return _array.getBaseType(); + } + + public String getBaseTypeName() throws SQLException + { + return _array.getBaseTypeName(); + } + + public ArrayDescriptor getDescriptor() throws SQLException + { + return _array.getDescriptor(); + } + + /* array accessor methods */ + public java.math.BigDecimal[] getArray() throws SQLException + { + return (java.math.BigDecimal[]) _array.getObjectArray(); + } + + public java.math.BigDecimal[] getArray(long index, int count) throws SQLException + { + return (java.math.BigDecimal[]) _array.getObjectArray(index, count); + } + + public void setArray(java.math.BigDecimal[] a) throws SQLException + { + _array.setObjectArray(a); + } + + public void setArray(java.math.BigDecimal[] a, long index) throws SQLException + { + _array.setObjectArray(a, index); + } + + public java.math.BigDecimal getElement(long index) throws SQLException + { + return (java.math.BigDecimal) _array.getObjectElement(index); + } + + public void setElement(java.math.BigDecimal a, long index) throws SQLException + { + _array.setObjectElement(a, index); + } + + public String toString() + { try { String r = "MDSYS.SDO_ELEM_INFO_ARRAY" + "("; + java.math.BigDecimal[] a = (java.math.BigDecimal[])getArray(); + for (int i=0; i<a.length; ) { + r = r + a[i]; + i++; if (i<a.length) r = r + ","; } + r = r + ")"; return r; + } catch (SQLException e) { return e.toString(); } + } + + public boolean equals(Object obj) + { + if (this == obj) + { + return true; + } + + if ((obj == null) || (! obj.getClass().equals(this.getClass()))) + { + return false; + } + + OracleSdoElemInfoArray otherObject = (OracleSdoElemInfoArray) obj; + + try + { + return OracleSdoHelper.objectArraysEquals(getArray(), otherObject.getArray()); + } + catch (SQLException ex) + { + return false; + } + } + + public int hashCode() + { + try + { + return OracleSdoHelper.objectArrayHashCode(getArray()); + } + catch (SQLException ex) + { + return 0; + } + } + +} Property changes on: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoElemInfoArray.java ___________________________________________________________________ Added: svn:keywords + Id Added: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometry.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometry.java (rev 0) +++ trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometry.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -0,0 +1,191 @@ +/* + * + * The DbUnit Database Testing Framework + * Copyright (C)2002-2008, DbUnit.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +package org.dbunit.ext.oracle; + +import java.sql.SQLException; +import java.sql.Connection; +import oracle.jdbc.OracleTypes; +import oracle.sql.ORAData; +import oracle.sql.ORADataFactory; +import oracle.sql.Datum; +import oracle.sql.STRUCT; +import oracle.jpub.runtime.MutableStruct; + +/** + * This class was generated by oracle jpub. + * + * @see OracleSdoGeometryDataType + * @author cl...@e-... + * @author Last changed by: $Author$ + * @version $Revision$ $Date$ + * @since ? + */ +public class OracleSdoGeometry implements ORAData, ORADataFactory +{ + public static final String _SQL_NAME = "MDSYS.SDO_GEOMETRY"; + public static final int _SQL_TYPECODE = OracleTypes.STRUCT; + + protected MutableStruct _struct; + + protected static int[] _sqlType = { 2,2,2002,2003,2003 }; + protected static ORADataFactory[] _factory = new ORADataFactory[5]; + static + { + _factory[2] = OracleSdoPointType.getORADataFactory(); + _factory[3] = OracleSdoElemInfoArray.getORADataFactory(); + _factory[4] = OracleSdoOrdinateArray.getORADataFactory(); + } + protected static final OracleSdoGeometry _OracleSdoGeometryFactory = new OracleSdoGeometry(); + + public static ORADataFactory getORADataFactory() + { return _OracleSdoGeometryFactory; } + /* constructors */ + protected void _init_struct(boolean init) + { if (init) _struct = new MutableStruct(new Object[5], _sqlType, _factory); } + public OracleSdoGeometry() + { _init_struct(true); } + public OracleSdoGeometry(java.math.BigDecimal sdoGtype, java.math.BigDecimal sdoSrid, OracleSdoPointType sdoPoint, OracleSdoElemInfoArray sdoElemInfo, OracleSdoOrdinateArray sdoOrdinates) throws SQLException + { _init_struct(true); + setSdoGtype(sdoGtype); + setSdoSrid(sdoSrid); + setSdoPoint(sdoPoint); + setSdoElemInfo(sdoElemInfo); + setSdoOrdinates(sdoOrdinates); + } + + /* ORAData interface */ + public Datum toDatum(Connection c) throws SQLException + { + return _struct.toDatum(c, _SQL_NAME); + } + + + /* ORADataFactory interface */ + public ORAData create(Datum d, int sqlType) throws SQLException + { return create(null, d, sqlType); } + protected ORAData create(OracleSdoGeometry o, Datum d, int sqlType) throws SQLException + { + if (d == null) return null; + if (o == null) o = new OracleSdoGeometry(); + o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory); + return o; + } + /* accessor methods */ + public java.math.BigDecimal getSdoGtype() throws SQLException + { return (java.math.BigDecimal) _struct.getAttribute(0); } + + public void setSdoGtype(java.math.BigDecimal sdoGtype) throws SQLException + { _struct.setAttribute(0, sdoGtype); } + + + public java.math.BigDecimal getSdoSrid() throws SQLException + { return (java.math.BigDecimal) _struct.getAttribute(1); } + + public void setSdoSrid(java.math.BigDecimal sdoSrid) throws SQLException + { _struct.setAttribute(1, sdoSrid); } + + + public OracleSdoPointType getSdoPoint() throws SQLException + { return (OracleSdoPointType) _struct.getAttribute(2); } + + public void setSdoPoint(OracleSdoPointType sdoPoint) throws SQLException + { _struct.setAttribute(2, sdoPoint); } + + + public OracleSdoElemInfoArray getSdoElemInfo() throws SQLException + { return (OracleSdoElemInfoArray) _struct.getAttribute(3); } + + public void setSdoElemInfo(OracleSdoElemInfoArray sdoElemInfo) throws SQLException + { _struct.setAttribute(3, sdoElemInfo); } + + + public OracleSdoOrdinateArray getSdoOrdinates() throws SQLException + { return (OracleSdoOrdinateArray) _struct.getAttribute(4); } + + public void setSdoOrdinates(OracleSdoOrdinateArray sdoOrdinates) throws SQLException + { _struct.setAttribute(4, sdoOrdinates); } + + public String toString() + { try { + return "MDSYS.SDO_GEOMETRY" + "(" + + getSdoGtype() + "," + + getSdoSrid() + "," + + getSdoPoint() + "," + + getSdoElemInfo() + "," + + getSdoOrdinates() + + ")"; + } catch (Exception e) { return e.toString(); } + } + + public boolean equals(Object obj) + { + if (this == obj) + { + return true; + } + + if (obj == null || ! obj.getClass().equals(this.getClass())) + { + return false; + } + + OracleSdoGeometry otherSdoGeom = (OracleSdoGeometry) obj; + + try + { + return + OracleSdoHelper.objectsEqual(getSdoGtype(), otherSdoGeom.getSdoGtype()) && + OracleSdoHelper.objectsEqual(getSdoSrid(), otherSdoGeom.getSdoSrid()) && + OracleSdoHelper.objectsEqual(getSdoPoint(), otherSdoGeom.getSdoPoint()) && + OracleSdoHelper.objectsEqual(getSdoElemInfo(), otherSdoGeom.getSdoElemInfo()) && + OracleSdoHelper.objectsEqual(getSdoOrdinates(), otherSdoGeom.getSdoOrdinates()); + } + catch (SQLException ex) + { + return false; + } + } + + public int hashCode() + { + try + { + int hash = 7; + Object o; + o = getSdoGtype(); + hash = 31 * hash + (null == o ? 0 : o.hashCode()); + o = getSdoSrid(); + hash = 31 * hash + (null == o ? 0 : o.hashCode()); + o = getSdoPoint(); + hash = 31 * hash + (null == o ? 0 : o.hashCode()); + o = getSdoElemInfo(); + hash = 31 * hash + (null == o ? 0 : o.hashCode()); + o = getSdoOrdinates(); + hash = 31 * hash + (null == o ? 0 : o.hashCode()); + return hash; + } + catch (SQLException ex) + { + return 0; + } + } +} Property changes on: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometry.java ___________________________________________________________________ Added: svn:keywords + Id Modified: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometryDataType.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometryDataType.java 2009-12-01 07:21:06 UTC (rev 1123) +++ trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoGeometryDataType.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -27,10 +27,12 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; -import java.text.ParseException; +import java.util.regex.Matcher; +import java.util.regex.Pattern; -import oracle.sql.STRUCT; -import oracle.sql.StructDescriptor; +import oracle.jdbc.OracleResultSet; +import oracle.jdbc.OraclePreparedStatement; +import oracle.sql.ORAData; import org.dbunit.dataset.datatype.AbstractDataType; import org.dbunit.dataset.datatype.TypeCastException; @@ -84,6 +86,32 @@ * </code> * </p> * + * <p> + * This class uses the following objects which were rendered using oracle jpub and then + * slightly customized to work with dbunit: + * <ul> + * <li>OracleSdoGeometry - corresponds to oracle SDO_GEOMETRY data type</li> + * <li>OracleSdoPointType - corresponds to oracle SDO_POINT_TYPE data type</li> + * <li>OracleSdoElemInfoArray - corresponds to oracle SDO_ELEM_INFO_ARRAY data type</li> + * <li>OracleSdoOridinateArray - corresponds to oracle SDO_ORDINATE_ARRAY data type</li> + * </ul> + * These classes were rendered via jpub + * (http://download.oracle.com/otn/utilities_drivers/jdbc/10201/jpub_102.zip) + * with the following command syntax: + * <code> + * ./jpub -user=YOUR_USER_ID/YOUR_PASSWORD -url=YOUR_JDBC_URL + * -sql mdsys.sdo_geometry:OracleSdoGeometry, + * mdsys.sdo_point_type:OracleSdoPointType, + * mdsys.sdo_elem_info_array:OracleSdoElemInfoArray, + * mdsys.sdo_ordinate_array:OracleSdoOrdinateArray + * -dir=output_dir -methods=none -package=org.dbunit.ext.oracle -tostring=true + * </code> + * The equals and hashCode methods were then added so that the objects could be compared + * in test cases. Note that I did have to bash the jpub startup script (change classpath) + * because it assumes oracle 10g database but I ran it with 11g. Theoretically, this + * process can be repeated for other custom oracle object data types. + * </p> + * * @author cl...@e-... * @author Last changed by: $Author$ * @version $Revision$ $Date$ @@ -98,91 +126,25 @@ private static final String NULL = "NULL"; private static final String SDO_GEOMETRY = "SDO_GEOMETRY"; - private static final String SDO_POINT_TYPE = "SDO_POINT_TYPE"; - private static final String SDO_ELEM_INFO_ARRAY = "SDO_ELEM_INFO_ARRAY"; - private static final String SDO_ORDINATE_ARRAY = "SDO_ORDINATE_ARRAY"; + // patterns for parsing out the various pieces of the string + // representation of an sdo_geometry object + private static final Pattern sdoGeometryPattern = Pattern.compile( + "^(?:MDSYS\\.)?SDO_GEOMETRY\\s*\\(\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*"); + private static final Pattern sdoPointTypePattern = Pattern.compile( + "^(?:(?:(?:MDSYS\\.)?SDO_POINT_TYPE\\s*\\(\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s\\)]+)\\s*\\))|(NULL))\\s*,\\s*"); + private static final Pattern sdoElemInfoArrayPattern = Pattern.compile( + "^(?:(?:(?:(?:MDSYS\\.)?SDO_ELEM_INFO_ARRAY\\s*\\(([^\\)]*)\\))|(NULL)))\\s*,\\s*"); + private static final Pattern sdoOrdinateArrayPattern = Pattern.compile( + "^(?:(?:(?:(?:MDSYS\\.)?SDO_ORDINATE_ARRAY\\s*\\(([^\\)]*)\\))|(NULL)))\\s*\\)\\s*"); + OracleSdoGeometryDataType () { - super(SDO_GEOMETRY, Types.STRUCT, java.sql.Struct.class, false); + super(SDO_GEOMETRY, Types.STRUCT, OracleSdoGeometry.class, false); } public Object typeCast(Object value) throws TypeCastException { - return typeCast(value, null); - } - - /** - * This method parses out a list of numbers similar to: - * <ul> - * <li> - * SDO_ORDINATE_ARRAY(2, 2, 0, 2, 4, 2, 8, 4, 8, 12, 4, 12, 12, 10, NULL, 8) - * </li> - * <li> - * SDO_POINT_TYPE(96.8233, 32.5261, NULL) - * </li> - * </ul> - * - * @param input input string to parse (may be null) - * @param name name of array (ex: SDO_ORDINATE_ARRAY) - * @return array of parsed numbers some of which may be null - */ - private BigDecimal [] parseNumbers(String input, String name) throws ParseException - { - logger.debug("parseNumbers(input={}, name={}) - start", input, name); - if (input == null) - { - return null; - } - - int workIndex = 0; - if (name != null) - { - if (! input.startsWith(name)) - { - throw new ParseException("missing " + name, workIndex); - } - workIndex += name.length(); - } - - if (workIndex+1 >= input.length() || input.charAt(workIndex) != '(') - { - throw new ParseException("missing (", workIndex); - } - if (input.charAt(input.length() - 1) != ')') - { - throw new ParseException("missing )", input.length() - 1); - } - String [] numberStrings = input.substring(workIndex + 1, input.length() - 1).split(","); - if (numberStrings == null) - { - return null; - } - BigDecimal returnVal [] = new BigDecimal[numberStrings.length]; - for (int index=0; index<numberStrings.length; index++) - { - String valToParse = numberStrings[index].trim(); - logger.debug("parsing {} as BigDecimal", valToParse); - if (NULL.equals(valToParse)) - { - returnVal[index] = null; - } - else - { - returnVal[index] = new BigDecimal(valToParse); - } - } - - return returnVal; - } - - /** - * This method performs a typeCast using a jdbc connection. The connection is required - * for working with oracle STRUCTs. - * - */ - public Object typeCast(Object value, Connection connection) throws TypeCastException - { logger.debug("typeCast(value={}) - start", value); if (value == null || value == ITable.NO_VALUE) @@ -190,168 +152,135 @@ return null; } - if (value instanceof java.sql.Struct) + + if (value instanceof OracleSdoGeometry) { - return value; + return (OracleSdoGeometry) value; } if (value instanceof String) { // attempt to parse the SDO_GEOMETRY - if (connection == null) - { - throw new TypeCastException(value, this); - } - try { - String upperVal = ((String) value).toUpperCase(); + // all upper case for parse purposes + String upperVal = ((String) value).toUpperCase().trim(); if (NULL.equals(upperVal)) { return null; } - if (! (upperVal.startsWith(SDO_GEOMETRY + "(") && upperVal.endsWith(")"))) + // parse out sdo_geometry + Matcher sdoGeometryMatcher = sdoGeometryPattern.matcher(upperVal); + if (! sdoGeometryMatcher.find()) { throw new TypeCastException(value, this); } + BigDecimal gtype = NULL.equals(sdoGeometryMatcher.group(1)) ? + null : new BigDecimal(sdoGeometryMatcher.group(1)); + BigDecimal srid = NULL.equals(sdoGeometryMatcher.group(2)) ? + null : new BigDecimal(sdoGeometryMatcher.group(2)); - String workingVal = upperVal.substring( - (SDO_GEOMETRY + "(").length(), upperVal.length() - 1); - int workingIndex = 0; - - // parse out SDO_GTYPE - int commaIndex = workingVal.indexOf(",", workingIndex); - if (commaIndex == -1 || commaIndex == workingIndex || - commaIndex+1 == workingVal.length()) + // parse out sdo_point_type + upperVal = upperVal.substring(sdoGeometryMatcher.end()); + Matcher sdoPointTypeMatcher = sdoPointTypePattern.matcher(upperVal); + if (! sdoPointTypeMatcher.find()) { throw new TypeCastException(value, this); } - String gtypeString = workingVal.substring(workingIndex, commaIndex).trim(); - Integer gtype = NULL.equals(gtypeString) ? null : new Integer(gtypeString); - workingIndex = commaIndex + 1; - // parse out SDO_SRID - commaIndex = workingVal.indexOf(",", workingIndex); - if (commaIndex == -1 || commaIndex == workingIndex || - commaIndex+1 == workingVal.length()) + OracleSdoPointType sdoPoint; + if (NULL.equals(sdoPointTypeMatcher.group(4))) { - throw new TypeCastException(value, this); + sdoPoint = null; } - String sridString = workingVal.substring(workingIndex, commaIndex).trim(); - Integer srid = NULL.equals(sridString) ? null : new Integer(sridString); - workingIndex = commaIndex + 1; - - // parse out SDO_POINT - workingVal = workingVal.substring(workingIndex).trim(); - workingIndex = 0; - - BigDecimal pointValues []; - if (workingVal.startsWith(NULL)) - { - pointValues = null; - } else { - int closingParenIndex = workingVal.indexOf(")", workingIndex); - if (closingParenIndex == -1) - { - throw new TypeCastException(value, this); - } - pointValues = parseNumbers(workingVal.substring( - workingIndex, closingParenIndex + 1), SDO_POINT_TYPE); - workingIndex = closingParenIndex + 1; + sdoPoint = new OracleSdoPointType( + NULL.equals(sdoPointTypeMatcher.group(1)) ? null : + new BigDecimal(sdoPointTypeMatcher.group(1)), + NULL.equals(sdoPointTypeMatcher.group(2)) ? null : + new BigDecimal(sdoPointTypeMatcher.group(2)), + NULL.equals(sdoPointTypeMatcher.group(3)) ? null : + new BigDecimal(sdoPointTypeMatcher.group(3))); } - - // eat the comma - commaIndex = workingVal.indexOf(",", workingIndex); - if (commaIndex == -1 || commaIndex+1 == workingVal.length()) + // parse out sdo_elem_info_array + upperVal = upperVal.substring(sdoPointTypeMatcher.end()); + Matcher sdoElemInfoArrayMatcher = sdoElemInfoArrayPattern.matcher(upperVal); + if (! sdoElemInfoArrayMatcher.find()) { throw new TypeCastException(value, this); } - workingVal = workingVal.substring(commaIndex + 1).trim(); - workingIndex = 0; - - BigDecimal elemInfos []; - if (workingVal.startsWith(NULL)) + OracleSdoElemInfoArray sdoElemInfoArray; + if (NULL.equals(sdoElemInfoArrayMatcher.group(2))) { - elemInfos = null; + sdoElemInfoArray = null; } else { - int closingParenIndex = workingVal.indexOf(")", workingIndex); - if (closingParenIndex == -1) + String [] elemInfoStrings = sdoElemInfoArrayMatcher.group(1). + trim().split("\\s*,\\s*"); + if (elemInfoStrings.length == 1 && "".equals(elemInfoStrings[0])) { - throw new TypeCastException(value, this); + sdoElemInfoArray = new OracleSdoElemInfoArray(); } - elemInfos = parseNumbers(workingVal.substring( - workingIndex, closingParenIndex + 1), SDO_ELEM_INFO_ARRAY); - workingIndex = closingParenIndex + 1; + else + { + BigDecimal [] elemInfos = new BigDecimal[elemInfoStrings.length]; + for (int index = 0; index < elemInfoStrings.length; index++) + { + elemInfos[index] = NULL.equals(elemInfoStrings[index]) ? + null : new BigDecimal(elemInfoStrings[index]); + } + sdoElemInfoArray = new OracleSdoElemInfoArray(elemInfos); + } } - // eat the comma - commaIndex = workingVal.indexOf(",", workingIndex); - if (commaIndex == -1 || commaIndex+1 == workingVal.length()) + // parse out sdo_ordinate_array + upperVal = upperVal.substring(sdoElemInfoArrayMatcher.end()); + Matcher sdoOrdinateArrayMatcher = sdoOrdinateArrayPattern.matcher(upperVal); + if (! sdoOrdinateArrayMatcher.find()) { throw new TypeCastException(value, this); } - workingVal = workingVal.substring(commaIndex + 1).trim(); - workingIndex = 0; - - BigDecimal ordinates []; - if (workingVal.startsWith(NULL)) + + OracleSdoOrdinateArray sdoOrdinateArray; + if (NULL.equals(sdoOrdinateArrayMatcher.group(2))) { - ordinates = null; + sdoOrdinateArray = null; } else { - int closingParenIndex = workingVal.indexOf(")", workingIndex); - if (closingParenIndex == -1) + String [] ordinateStrings = sdoOrdinateArrayMatcher.group(1). + trim().split("\\s*,\\s*"); + if (ordinateStrings.length == 1 && "".equals(ordinateStrings[0])) { - throw new TypeCastException(value, this); + sdoOrdinateArray = new OracleSdoOrdinateArray(); } - ordinates = parseNumbers(workingVal.substring( - workingIndex, closingParenIndex + 1), SDO_ORDINATE_ARRAY); - workingIndex = closingParenIndex + 1; - } - - - // Now package it all up in an oracle STRUCT object - - // SDO_POINT_TYPE - STRUCT pointStruct; - if (pointValues == null) - { - pointStruct = null; - } - else - { - // SDO_POINT_TYPE has x,y,z coordinates - if (pointValues.length != 3) + else { - throw new TypeCastException(value, this); + BigDecimal [] ordinates = new BigDecimal[ordinateStrings.length]; + for (int index = 0; index < ordinateStrings.length; index++) + { + ordinates[index] = NULL.equals(ordinateStrings[index]) ? + null : new BigDecimal(ordinateStrings[index]); + } + sdoOrdinateArray = new OracleSdoOrdinateArray(ordinates); } - StructDescriptor pointDescriptor = StructDescriptor.createDescriptor(SDO_POINT_TYPE, connection); - Object [] pointAttributes = new Object [] - { pointValues[0], pointValues[1], pointValues[2] }; - pointStruct = new STRUCT(pointDescriptor, connection, pointAttributes); } - // SDO_GEOMETRY - StructDescriptor geometryDescriptor = StructDescriptor.createDescriptor(SDO_GEOMETRY, connection); - Object [] geometryAttributes = new Object [] - { gtype, srid, pointStruct, elemInfos, ordinates }; - STRUCT geometryStruct = new STRUCT(geometryDescriptor, connection, geometryAttributes); + OracleSdoGeometry sdoGeometry = new OracleSdoGeometry( + gtype, srid, sdoPoint, sdoElemInfoArray, sdoOrdinateArray); - return geometryStruct; + return sdoGeometry; } - catch (ParseException e) + catch (SQLException e) { throw new TypeCastException(value, this, e); } - catch (SQLException e) + catch (NumberFormatException e) { throw new TypeCastException(value, this, e); } @@ -361,30 +290,6 @@ } - protected void appendNamedArray(StringBuffer buf, String name, - java.sql.Array array) throws SQLException - { - if (array == null) - { - buf.append(NULL); - } - else - { - buf.append(name); - buf.append("("); - Object elements [] = (Object[]) array.getArray(); - for (int index=0; index<elements.length; index++) - { - buf.append(elements[index] == null ? NULL : elements[index]); - if (index+1 != elements.length) - { - buf.append(", "); - } - } - buf.append(")"); - } - } - public Object getSqlValue(int column, ResultSet resultSet) throws SQLException, TypeCastException { @@ -395,55 +300,27 @@ Object data = null; try { - data = resultSet.getObject(column); + data = ((OracleResultSet) resultSet). + getORAData(column, OracleSdoGeometry.getORADataFactory()); - if (data != null) - { - if (! (data instanceof STRUCT)) - { - throw new TypeCastException(data, this); - } + // It would be preferable to return the actual object, but there are + // a few dbunit issues with this: + // + // 1. Dbunit does not support nulls for user defined types (at least + // with oracle.) PreparedStatement.setNull(int, int) is always used + // but PreparedStatement.setNull(int, int, String) is required + // for sdo_geometry (and other similar custom object types). + // + // 2. Dbunit does not support rendering custom objects (such as + // OracleSdoGeometry) as strings. + // + // So, instead we return the object as a String or "NULL". - Object attributes [] = ((STRUCT) data).getAttributes(); + // return data; - // build out a string representing the SDO_GEOMETRY - StringBuffer buf = new StringBuffer(); - - Object attribute; - buf.append(SDO_GEOMETRY); - buf.append("("); - attribute = attributes[0]; - buf.append(attribute == null ? NULL : attribute); - buf.append(", "); - attribute = attributes[1]; - buf.append(attribute == null ? NULL : attribute); - buf.append(", "); - attribute = attributes[2]; - if (attribute == null) - { - buf.append(NULL); - } - else - { - buf.append(SDO_POINT_TYPE); - buf.append("("); - Object [] pointAttributes = ((STRUCT) attribute).getAttributes(); - buf.append(pointAttributes[0] == null ? NULL : pointAttributes[0]); - buf.append(", "); - buf.append(pointAttributes[1] == null ? NULL : pointAttributes[1]); - buf.append(", "); - buf.append(pointAttributes[2] == null ? NULL : pointAttributes[2]); - buf.append(")"); - } - buf.append(", "); - - appendNamedArray(buf, SDO_ELEM_INFO_ARRAY, (java.sql.Array) attributes[3]); - buf.append(", "); - appendNamedArray(buf, SDO_ORDINATE_ARRAY, (java.sql.Array) attributes[4]); - - buf.append(")"); - - return buf.toString(); + if (data != null) + { + return data.toString(); } else { @@ -460,16 +337,75 @@ } } - public void setSqlValue(Object value, int column, PreparedStatement statement) throws SQLException, TypeCastException + public void setSqlValue(Object value, int column, PreparedStatement statement) + throws SQLException, TypeCastException { - Object castValue = typeCast(value, statement.getConnection()); + Object castValue = typeCast(value); if (castValue == null) { - statement.setNull(column, Types.STRUCT, SDO_GEOMETRY); + statement.setNull(column, OracleSdoGeometry._SQL_TYPECODE, + OracleSdoGeometry._SQL_NAME); } else { - statement.setObject(column, castValue, Types.STRUCT); + ((OraclePreparedStatement) statement).setORAData(column, (ORAData) castValue); } } + + /** + * This method is copied from AbstractDataType and customized to call equals + * after the typeCast because OracleSdoGeometry objects are not Comparables + * but can test for equality (via equals method.) It is needed for test + * cases that check for equality between data in xml files and data read + * from the database. + */ + public int compare(Object o1, Object o2) throws TypeCastException + { + logger.debug("compare(o1={}, o2={}) - start", o1, o2); + + try + { + // New in 2.3: Object level check for equality - should give massive performance improvements + // in the most cases because the typecast can be avoided (null values and equal objects) + if(areObjectsEqual(o1, o2)) + { + return 0; + } + + + // Comparable check based on the results of method "typeCast" + Object value1 = typeCast(o1); + Object value2 = typeCast(o2); + + // Check for "null"s again because typeCast can produce them + + if (value1 == null && value2 == null) + { + return 0; + } + + if (value1 == null && value2 != null) + { + return -1; + } + + if (value1 != null && value2 == null) + { + return 1; + } + + if (value1.equals(value2)) + { + return 0; + } + + return compareNonNulls(value1, value2); + + } + catch (ClassCastException e) + { + throw new TypeCastException(e); + } + } + } Added: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoHelper.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoHelper.java (rev 0) +++ trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoHelper.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -0,0 +1,83 @@ +/* + * + * The DbUnit Database Testing Framework + * Copyright (C)2002-2008, DbUnit.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +package org.dbunit.ext.oracle; + +import java.math.BigDecimal; + +/** + * This class provides some basic functionality shared among the OracleSdo* + * objects. + * + * @author cl...@e-... + * @author Last changed by: $Author$ + * @version $Revision$ $Date$ + * @since ? + */ +class OracleSdoHelper +{ + public static boolean objectsEqual(Object object1, Object object2) + { + return + (object1 != null && object1.equals(object2)) || + (object1 == null && object2 == null) || + // special case for BigDecimal support + (object1 != null && object2 != null && + object1 instanceof BigDecimal && object2 instanceof BigDecimal && + ((BigDecimal)object1).compareTo((BigDecimal)object2) == 0); + } + + public static boolean objectArraysEquals(Object [] objects1, Object [] objects2) + { + if (objects1 == objects2) + { + return true; + } + + if (objects1 == null || objects2 == null || objects1.length != objects2.length) + { + return false; + } + + for (int index = 0; index<objects1.length; index++) + { + if (! objectsEqual(objects1[index], objects2[index])) + { + return false; + } + } + + return true; + } + + public static int objectArrayHashCode(Object [] objects) + { + int hash = 7; + if (objects != null) + { + for (int index = 0; index<objects.length; index++) + { + hash = 31 * hash + (null == objects[index] ? 0 : objects[index].hashCode()); + } + } + return hash; + } +} Property changes on: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoHelper.java ___________________________________________________________________ Added: svn:keywords + Id Added: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoOrdinateArray.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoOrdinateArray.java (rev 0) +++ trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoOrdinateArray.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -0,0 +1,177 @@ +/* + * + * The DbUnit Database Testing Framework + * Copyright (C)2002-2008, DbUnit.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +package org.dbunit.ext.oracle; + +import java.sql.SQLException; +import java.sql.Connection; +import oracle.jdbc.OracleTypes; +import oracle.sql.ORAData; +import oracle.sql.ORADataFactory; +import oracle.sql.Datum; +import oracle.sql.ARRAY; +import oracle.sql.ArrayDescriptor; +import oracle.jpub.runtime.MutableArray; + +/** + * This class was generated by oracle jpub. + * + * @see OracleSdoGeometryDataType + * @author cl...@e-... + * @author Last changed by: $Author$ + * @version $Revision$ $Date$ + * @since ? + */ +public class OracleSdoOrdinateArray implements ORAData, ORADataFactory +{ + public static final String _SQL_NAME = "MDSYS.SDO_ORDINATE_ARRAY"; + public static final int _SQL_TYPECODE = OracleTypes.ARRAY; + + MutableArray _array; + +private static final OracleSdoOrdinateArray _OracleSdoOrdinateArrayFactory = new OracleSdoOrdinateArray(); + + public static ORADataFactory getORADataFactory() + { return _OracleSdoOrdinateArrayFactory; } + /* constructors */ + public OracleSdoOrdinateArray() + { + this((java.math.BigDecimal[])null); + } + + public OracleSdoOrdinateArray(java.math.BigDecimal[] a) + { + _array = new MutableArray(2, a, null); + } + + /* ORAData interface */ + public Datum toDatum(Connection c) throws SQLException + { + return _array.toDatum(c, _SQL_NAME); + } + + /* ORADataFactory interface */ + public ORAData create(Datum d, int sqlType) throws SQLException + { + if (d == null) return null; + OracleSdoOrdinateArray a = new OracleSdoOrdinateArray(); + a._array = new MutableArray(2, (ARRAY) d, null); + return a; + } + + public int length() throws SQLException + { + return _array.length(); + } + + public int getBaseType() throws SQLException + { + return _array.getBaseType(); + } + + public String getBaseTypeName() throws SQLException + { + return _array.getBaseTypeName(); + } + + public ArrayDescriptor getDescriptor() throws SQLException + { + return _array.getDescriptor(); + } + + /* array accessor methods */ + public java.math.BigDecimal[] getArray() throws SQLException + { + return (java.math.BigDecimal[]) _array.getObjectArray(); + } + + public java.math.BigDecimal[] getArray(long index, int count) throws SQLException + { + return (java.math.BigDecimal[]) _array.getObjectArray(index, count); + } + + public void setArray(java.math.BigDecimal[] a) throws SQLException + { + _array.setObjectArray(a); + } + + public void setArray(java.math.BigDecimal[] a, long index) throws SQLException + { + _array.setObjectArray(a, index); + } + + public java.math.BigDecimal getElement(long index) throws SQLException + { + return (java.math.BigDecimal) _array.getObjectElement(index); + } + + public void setElement(java.math.BigDecimal a, long index) throws SQLException + { + _array.setObjectElement(a, index); + } + + public String toString() + { try { String r = "MDSYS.SDO_ORDINATE_ARRAY" + "("; + java.math.BigDecimal[] a = (java.math.BigDecimal[])getArray(); + for (int i=0; i<a.length; ) { + r = r + a[i]; + i++; if (i<a.length) r = r + ","; } + r = r + ")"; return r; + } catch (SQLException e) { return e.toString(); } + } + + public boolean equals(Object obj) + { + if (this == obj) + { + return true; + } + + if ((obj == null) || (! obj.getClass().equals(this.getClass()))) + { + return false; + } + + OracleSdoOrdinateArray otherObject = (OracleSdoOrdinateArray) obj; + + try + { + return OracleSdoHelper.objectArraysEquals(getArray(), otherObject.getArray()); + } + catch (SQLException ex) + { + return false; + } + } + + public int hashCode() + { + try + { + return OracleSdoHelper.objectArrayHashCode(getArray()); + } + catch (SQLException ex) + { + return 0; + } + } + +} Property changes on: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoOrdinateArray.java ___________________________________________________________________ Added: svn:keywords + Id Added: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoPointType.java =================================================================== --- trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoPointType.java (rev 0) +++ trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoPointType.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -0,0 +1,161 @@ +/* + * + * The DbUnit Database Testing Framework + * Copyright (C)2002-2008, DbUnit.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +package org.dbunit.ext.oracle; + +import java.sql.SQLException; +import java.sql.Connection; +import oracle.jdbc.OracleTypes; +import oracle.sql.ORAData; +import oracle.sql.ORADataFactory; +import oracle.sql.Datum; +import oracle.sql.STRUCT; +import oracle.jpub.runtime.MutableStruct; + +/** + * This class was generated by oracle jpub. + * + * @see OracleSdoGeometryDataType + * @author cl...@e-... + * @author Last changed by: $Author$ + * @version $Revision$ $Date$ + * @since ? + */ +public class OracleSdoPointType implements ORAData, ORADataFactory +{ + public static final String _SQL_NAME = "MDSYS.SDO_POINT_TYPE"; + public static final int _SQL_TYPECODE = OracleTypes.STRUCT; + + protected MutableStruct _struct; + + protected static int[] _sqlType = { 2,2,2 }; + protected static ORADataFactory[] _factory = new ORADataFactory[3]; + protected static final OracleSdoPointType _OracleSdoPointTypeFactory = new OracleSdoPointType(); + + public static ORADataFactory getORADataFactory() + { return _OracleSdoPointTypeFactory; } + /* constructors */ + protected void _init_struct(boolean init) + { if (init) _struct = new MutableStruct(new Object[3], _sqlType, _factory); } + public OracleSdoPointType() + { _init_struct(true); } + public OracleSdoPointType(java.math.BigDecimal x, java.math.BigDecimal y, java.math.BigDecimal z) throws SQLException + { _init_struct(true); + setX(x); + setY(y); + setZ(z); + } + + /* ORAData interface */ + public Datum toDatum(Connection c) throws SQLException + { + return _struct.toDatum(c, _SQL_NAME); + } + + + /* ORADataFactory interface */ + public ORAData create(Datum d, int sqlType) throws SQLException + { return create(null, d, sqlType); } + protected ORAData create(OracleSdoPointType o, Datum d, int sqlType) throws SQLException + { + if (d == null) return null; + if (o == null) o = new OracleSdoPointType(); + o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory); + return o; + } + /* accessor methods */ + public java.math.BigDecimal getX() throws SQLException + { return (java.math.BigDecimal) _struct.getAttribute(0); } + + public void setX(java.math.BigDecimal x) throws SQLException + { _struct.setAttribute(0, x); } + + + public java.math.BigDecimal getY() throws SQLException + { return (java.math.BigDecimal) _struct.getAttribute(1); } + + public void setY(java.math.BigDecimal y) throws SQLException + { _struct.setAttribute(1, y); } + + + public java.math.BigDecimal getZ() throws SQLException + { return (java.math.BigDecimal) _struct.getAttribute(2); } + + public void setZ(java.math.BigDecimal z) throws SQLException + { _struct.setAttribute(2, z); } + + public String toString() + { try { + return "MDSYS.SDO_POINT_TYPE" + "(" + + getX() + "," + + getY() + "," + + getZ() + + ")"; + } catch (Exception e) { return e.toString(); } + } + + public boolean equals(Object obj) + { + if (this == obj) + { + return true; + } + + if ((obj == null) || (! obj.getClass().equals(this.getClass()))) + { + return false; + } + + OracleSdoPointType otherObject = (OracleSdoPointType) obj; + + try + { + return + OracleSdoHelper.objectsEqual(getX(), otherObject.getX()) && + OracleSdoHelper.objectsEqual(getY(), otherObject.getY()) && + OracleSdoHelper.objectsEqual(getZ(), otherObject.getZ()); + } + catch (SQLException ex) + { + return false; + } + } + + public int hashCode() + { + try + { + int hash = 7; + Object o; + o = getX(); + hash = 31 * hash + (null == o ? 0 : o.hashCode()); + o = getY(); + hash = 31 * hash + (null == o ? 0 : o.hashCode()); + o = getZ(); + hash = 31 * hash + (null == o ? 0 : o.hashCode()); + return hash; + } + catch (SQLException ex) + { + return 0; + } + } +} Property changes on: trunk/dbunit/src/java/org/dbunit/ext/oracle/OracleSdoPointType.java ___________________________________________________________________ Added: svn:keywords + Id Modified: trunk/dbunit/src/test/org/dbunit/dataset/datatype/StringDataTypeTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/dataset/datatype/StringDataTypeTest.java 2009-12-01 07:21:06 UTC (rev 1123) +++ trunk/dbunit/src/test/org/dbunit/dataset/datatype/StringDataTypeTest.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -25,6 +25,7 @@ import org.dbunit.dataset.ITable; import java.sql.Types; +import java.sql.SQLException; /** * @author Manuel Laflamme @@ -133,26 +134,64 @@ } } + /** + * Return a bad clob that throws SQLException on all its operations. + */ + private Object getBadClob() + { + // need to use proxy / reflection to work arround Clob differences + // in jdk 1.4+ + java.lang.reflect.InvocationHandler alwaysThrowSqlExceptionHandler = + new java.lang.reflect.InvocationHandler() + { + public Object invoke(Object proxy, java.lang.reflect.Method method, Object[] args) + throws Throwable + { + if ("toString".equals(method.getName())) + { + return this.toString(); + } + else if ("equals".equals(method.getName())) + { + return Boolean.FALSE; + } + throw new SQLException(); + } + }; + + return java.lang.reflect.Proxy.newProxyInstance( + java.sql.Clob.class.getClassLoader(), new Class[] { java.sql.Clob.class }, + alwaysThrowSqlExceptionHandler); + } + public void testTypeCastInvalid() throws Exception { Object[] values = { - new Object() + new Object() { public String toString() { return "ABC123";} }, + new Object() { public String toString() { return "XXXX";} }, + new Object() { public String toString() { return "X";} }, }; for (int i = 0; i < TYPES.length; i++) { for (int j = 0; j < values.length; j++) { - try - { - TYPES[i].typeCast(values[j]); - fail("Should throw TypeCastException"); - } - catch (TypeCastException e) - { - } + assertEquals(TYPES[i].typeCast(values[j]), values[j].toString()); } } + + Object badClob = getBadClob(); + for (int i = 0; i < TYPES.length; i++) + { + try + { + TYPES[i].typeCast(badClob); + fail("Should throw TypeCastException"); + } + catch (TypeCastException e) + { + } + } } public void testCompareEquals() throws Exception @@ -197,7 +236,7 @@ public void testCompareInvalid() throws Exception { Object[] values1 = { - new Object(), + getBadClob(), }; Object[] values2 = { null, Added: trunk/dbunit/src/test/org/dbunit/ext/oracle/OracleSdoGeometryDataTypeTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/ext/oracle/OracleSdoGeometryDataTypeTest.java (rev 0) +++ trunk/dbunit/src/test/org/dbunit/ext/oracle/OracleSdoGeometryDataTypeTest.java 2009-12-01 20:49:33 UTC (rev 1124) @@ -0,0 +1,403 @@ +/* + * + * The DbUnit Database Testing Framework + * Copyright (C)2002-2004, DbUnit.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +package org.dbunit.ext.oracle; + +import org.dbunit.database.ExtendedMockSingleRowResultSet; +import org.dbunit.dataset.datatype.AbstractDataTypeTest; +import org.dbunit.dataset.datatype.DataType; +import org.dbunit.dataset.datatype.TypeCastException; +import org.dbunit.dataset.ITable; + +import java.math.BigDecimal; +import java.sql.Types; + +/** + * @author + * @version + */ + +public class OracleSdoGeometryDataTypeTest extends AbstractDataTypeTest +{ + private final static DataType THIS_TYPE = OracleDataTypeFactory.ORACLE_SDO_GEOMETRY_TYPE; + + public OracleSdoGeometryDataTypeTest(String name) + { + super(name); + } + + /** + * + */ + public void testToString() throws Exception + { + assertEquals("name", "SDO_GEOMETRY", THIS_TYPE.toString()); + } + + /** + * + */ + public void testGetTypeClass() throws Exception + { + assertEquals("class", org.dbunit.ext.oracle.OracleSdoGeometry.class, THIS_TYPE.getTypeClass()); + } + + /** + * + */ + public void testIsNumber() throws Exception + { + assertEquals("is number", false, THIS_TYPE.isNumber()); + } + + public void testIsDateTime() throws Exception + { + assertEquals("is date/time", false, THIS_TYPE.isDateTime()); + } + + public void testTypeCast() throws Exception + { + Object[] values = { + null, + new OracleSdoGeometry(null, null, null, null, null), + new OracleSdoGeometry(new BigDecimal(123), null, null, null, null), + new OracleSdoGeometry(new BigDecimal(123), new BigDecimal("45.6"), null, null, null), + new OracleSdoGeometry(null, null, new OracleSdoPointType(null, null, null), null, null), + new OracleSdoGeometry(null, null, new OracleSdoPointType(new BigDecimal(1), new BigDecimal(2), new BigDecimal(3)), null, null), + new OracleSdoGeometry(null, null, null, new OracleSdoElemInfoArray(), null), + new OracleSdoGeometry(null, null, null, null, new OracleSdoOrdinateArray()), + new OracleSdoGeometry(new BigDecimal(123), new BigDecimal("45.6"), + new OracleSdoPointType(new BigDecimal("-1234.564"), new BigDecimal("5.3403"), new BigDecimal(57)), + new OracleSdoElemInfoArray( + new BigDecimal [] { new BigDecimal(10), new BigDecimal(9), new BigDecimal(8), new BigDecimal(7) } ), + new OracleSdoOrdinateArray( + new BigDecimal [] { new BigDecimal(6), new BigDecimal(5), new BigDecimal(4), new BigDecimal(3) } )), + "NULL", + " NULL ", + "sdo_geometry(123, null, null, null, null)", + "sdo_gEOMEtry(123, null, null, null, null)", + "mdsys.sdo_geometry(123, 45.6, null, null, null)", + "mdsys.sdo_geometry(123, 45.6, sdo_point_type(null,null,nul... [truncated message content] |
From: <jb...@us...> - 2009-12-01 07:21:15
|
Revision: 1123 http://dbunit.svn.sourceforge.net/dbunit/?rev=1123&view=rev Author: jbhurst Date: 2009-12-01 07:21:06 +0000 (Tue, 01 Dec 2009) Log Message: ----------- [2875235] - removed static dependency on hsqldb from test code base. Modified Paths: -------------- trunk/dbunit/pom.xml trunk/dbunit/src/test/org/dbunit/dataset/datatype/BlobDataTypeTest.java Added Paths: ----------- trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-24 00:10:26 UTC (rev 1122) +++ trunk/dbunit/pom.xml 2009-12-01 07:21:06 UTC (rev 1123) @@ -287,12 +287,6 @@ <scope>test</scope> </dependency> <dependency> - <groupId>hsqldb</groupId> - <artifactId>hsqldb</artifactId> - <version>1.8.0.1</version> - <scope>test</scope> - </dependency> - <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.1.113</version> @@ -634,9 +628,17 @@ <dbunit.profile.url>jdbc:hsqldb:mem:.</dbunit.profile.url> <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> <dbunit.profile.user>sa</dbunit.profile.user> - <dbunit.profile.password /> + <dbunit.profile.password></dbunit.profile.password> <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> </properties> + <dependencies> + <dependency> + <groupId>hsqldb</groupId> + <artifactId>hsqldb</artifactId> + <version>1.8.0.1</version> + <scope>test</scope> + </dependency> + </dependencies> </profile> <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 10 JDBC driver for Java 1.4 --> <profile> Modified: trunk/dbunit/src/test/org/dbunit/dataset/datatype/BlobDataTypeTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/dataset/datatype/BlobDataTypeTest.java 2009-11-24 00:10:26 UTC (rev 1122) +++ trunk/dbunit/src/test/org/dbunit/dataset/datatype/BlobDataTypeTest.java 2009-12-01 07:21:06 UTC (rev 1123) @@ -20,13 +20,13 @@ */ package org.dbunit.dataset.datatype; +import java.sql.Blob; import java.sql.Types; import junit.framework.TestCase; import junitx.framework.ArrayAssert; import org.dbunit.database.statement.MockPreparedStatement; -import org.hsqldb.jdbc.jdbcBlob; /** * @author gommma @@ -50,9 +50,9 @@ { // Create a hsqldb specific blob byte[] byteArray = new byte[]{1, 2, 3, 4, 5, 6}; - jdbcBlob jdbcBlob = new jdbcBlob(byteArray); + Blob blob = new TestBlob(byteArray); MockPreparedStatement statement = new MockPreparedStatement(); - TYPE.setSqlValue(jdbcBlob, 1, statement); + TYPE.setSqlValue(blob, 1, statement); assertEquals(1, statement.getLastSetObjectParamIndex()); assertEquals(Types.BLOB, statement.getLastSetObjectTargetSqlType()); assertEquals(byte[].class, statement.getLastSetObjectParamValue().getClass()); Added: trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java (rev 0) +++ trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java 2009-12-01 07:21:06 UTC (rev 1123) @@ -0,0 +1,99 @@ +/* + * + * The DbUnit Database Testing Framework + * Copyright (C)2002-2009, DbUnit.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ +package org.dbunit.dataset.datatype; + +import java.io.InputStream; +import java.io.OutputStream; +import java.sql.Blob; +import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; + +/** + * @author John Hurst + * @version $Revision$ + * @since 2.4.8 + */ +public class TestBlob implements Blob +{ + private byte[] data = new byte[0]; + + public TestBlob(byte[] data) + { + this.data = data; + } + + public long length() throws SQLException + { // used in DbUnit + return data.length; + } + + public byte[] getBytes(long pos, int length) throws SQLException + { // used in DbUnit + byte[] result = new byte[length]; + System.arraycopy(data, (int) pos - 1, result, 0, length); + return result; + } + + public InputStream getBinaryStream() throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support getBinaryStream()"); + } + + public long position(byte[] pattern, long start) throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support position(byte[], long)"); + } + + public long position(Blob pattern, long start) throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support position(Blob, long)"); + } + + public int setBytes(long pos, byte[] bytes) throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support setBytes(long, byte[])"); + } + + public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support setBytes(long, byte[], int, int)"); + } + + public OutputStream setBinaryStream(long pos) throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support setBinaryStream(long)"); + } + + public void truncate(long len) throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support truncate(long)"); + } + + public void free() throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support free()"); + } + + public InputStream getBinaryStream(long pos, long length) throws SQLException + { + throw new SQLFeatureNotSupportedException("TestBlob does not support getBinaryStream(long, long)"); + } +} Property changes on: trunk/dbunit/src/test/org/dbunit/dataset/datatype/TestBlob.java ___________________________________________________________________ Added: svn:keywords + Id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rlo...@us...> - 2009-11-15 09:46:36
|
Revision: 1118 http://dbunit.svn.sourceforge.net/dbunit/?rev=1118&view=rev Author: rlogiacco Date: 2009-11-15 09:46:20 +0000 (Sun, 15 Nov 2009) Log Message: ----------- updated site with 2.4.7 release news Modified Paths: -------------- trunk/dbunit/src/site/xdoc/index.xml Modified: trunk/dbunit/src/site/xdoc/index.xml =================================================================== --- trunk/dbunit/src/site/xdoc/index.xml 2009-11-15 09:23:27 UTC (rev 1117) +++ trunk/dbunit/src/site/xdoc/index.xml 2009-11-15 09:46:20 UTC (rev 1118) @@ -26,6 +26,10 @@ <section name="News"> <table border="1"> <tr> + <td>2009-11-09</td> + <td>DbUnit project team is proud to deliver the new 2.4.7 release: please have a look at the <a href="changes-report.html#a2.4.7">changes</a> report for the release contents.</td> + </tr> + <tr> <td>2009-10-09</td> <td>We wish to welcome Jeff Jensen as a DbUnit developer, the project team is growing!</td> </tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rlo...@us...> - 2009-11-15 09:23:33
|
Revision: 1117 http://dbunit.svn.sourceforge.net/dbunit/?rev=1117&view=rev Author: rlogiacco Date: 2009-11-15 09:23:27 +0000 (Sun, 15 Nov 2009) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/dbunit/pom.xml Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-15 09:23:17 UTC (rev 1116) +++ trunk/dbunit/pom.xml 2009-11-15 09:23:27 UTC (rev 1117) @@ -4,7 +4,7 @@ <groupId>org.dbunit</groupId> <artifactId>dbunit</artifactId> - <version>2.4.7</version> + <version>2.4.8-SNAPSHOT</version> <packaging>jar</packaging> <name>DbUnit Framework</name> <url>http://dbunit.sourceforge.net</url> @@ -25,9 +25,9 @@ </properties> <scm> - <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</connection> - <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</developerConnection> - <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</url> + <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</connection> + <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</developerConnection> + <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</url> </scm> <issueManagement> <system>SourceForge</system> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rlo...@us...> - 2009-11-15 09:23:27
|
Revision: 1116 http://dbunit.svn.sourceforge.net/dbunit/?rev=1116&view=rev Author: rlogiacco Date: 2009-11-15 09:23:17 +0000 (Sun, 15 Nov 2009) Log Message: ----------- [maven-scm] copy for tag dbunit-2.4.7 Added Paths: ----------- tags/dbunit-2.4.7/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rlo...@us...> - 2009-11-15 09:22:59
|
Revision: 1115 http://dbunit.svn.sourceforge.net/dbunit/?rev=1115&view=rev Author: rlogiacco Date: 2009-11-15 09:22:52 +0000 (Sun, 15 Nov 2009) Log Message: ----------- [maven-release-plugin] prepare release dbunit-2.4.7 Modified Paths: -------------- trunk/dbunit/pom.xml Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-15 09:21:29 UTC (rev 1114) +++ trunk/dbunit/pom.xml 2009-11-15 09:22:52 UTC (rev 1115) @@ -1,828 +1,828 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.dbunit</groupId> - <artifactId>dbunit</artifactId> - <version>2.4.7-SNAPSHOT</version> - <packaging>jar</packaging> - <name>DbUnit Framework</name> - <url>http://dbunit.sourceforge.net</url> - <inceptionYear>2002</inceptionYear> - <description> - DbUnit is a JUnit extension (also usable from Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage. - </description> - <licenses> - <license> - <name>GNU Lesser General Public License, Version 2.1</name> - <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url> - <distribution>repo</distribution> - </license> - </licenses> - <properties> - <compileSource>1.4</compileSource> - <checkstyle.excludes>org/dbunit/util/concurrent/*.java</checkstyle.excludes> - </properties> - - <scm> - <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</connection> - <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</developerConnection> - <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</url> - </scm> - <issueManagement> - <system>SourceForge</system> - <url>http://sourceforge.net/tracker/?group_id=47439</url> - </issueManagement> - <ciManagement> - <system>parabuild</system> - <url><![CDATA[http://parabuild.viewtier.com:8080/parabuild/index.htm?view=detailed&buildid=30]]></url> - <notifiers> - <notifier> - <type>mail</type> - <sendOnError>true</sendOnError> - <sendOnFailure>false</sendOnFailure> - <sendOnSuccess>false</sendOnSuccess> - <sendOnWarning>false</sendOnWarning> - <configuration> - <address>go...@us...</address> - </configuration> - </notifier> - </notifiers> - </ciManagement> - - <mailingLists> - <mailingList> - <name>DbUnit User List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-user</archive> - </mailingList> - <mailingList> - <name>DbUnit Developer List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-developer</archive> - </mailingList> - <mailingList> - <name>DbUnit SVN Commit List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-commit</archive> - </mailingList> - </mailingLists> - - <!-- - - Who are the developers for the project, in order of recent activity. - --> - <developers> - <!-- - - Note: email of first developer is used by the announcements-email plugin - --> - <developer> - <name>Matthias Gommeringer</name> - <id>gommma</id> - <email>go...@us...</email> - <roles> - <role>Java Developer (very active)</role> - </roles> - </developer> - <developer> - <name>John Hurst</name> - <id>jbhurst</id> - <email>jb...@us...</email> - <roles> - <role>Java Developer (very active)</role> - </roles> - </developer> - <developer> - <name>Jeff Jensen</name> - <id>jeffjensen</id> - <email>jef...@us...</email> - <roles> - <role>Java Developer (active)</role> - </roles> - </developer> - <developer> - <name>Roberto Lo Giacco</name> - <id>rlogiacco</id> - <email>rlo...@us...</email> - <organization>SmartLab</organization> - <roles> - <role>Java Developer (active)</role> - </roles> - </developer> - <developer> - <name>Felipe Leme</name> - <id>felipeal</id> - <email>db...@fe...</email> - <organization>GoldenGate Software</organization> - <timezone>-8</timezone> - <roles> - <role>Java Developer (mostly inactive :-)</role> - </roles> - </developer> - <developer> - <name>David Eric Pugh</name> - <id>dep4b</id> - <email>ep...@op...</email> - <organization>OpenSource Connections</organization> - <roles> - <role>Java Developer (inactive)</role> - </roles> - </developer> - <developer> - <name>Sebastien Le Callonnec</name> - <id>slecallonnec</id> - <email>sle...@us...</email> - <roles> - <role>Java Developer (inactive)</role> - </roles> - </developer> - <developer> - <name>Manuel Laflamme</name> - <id>mlaflamm</id> - <organization>Oz Communication</organization> - <roles> - <role>Project Founder (inactive)</role> - <!-- <role>Java Developer</role> --> - </roles> - </developer> - <developer> - <name>Benjamin Cox</name> - <id>bdrum</id> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>Original Ant Task Contributor</role> --> - </roles> - </developer> - <developer> - <name>Federico Spinazzi</name> - <id>fspinazzi</id> - <email>f.s...@ma...</email> - <organization>Master House S.r.l</organization> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>DB2 Contributor</role> --> - </roles> - </developer> - <developer> - <name>Timothy J. Ruppert</name> - <id>zieggy</id> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>Original Ant Task Contributor</role> --> - </roles> - </developer> - </developers> - - <contributors> - <contributor> - <name>Klas Axel</name> - <roles> - <role>HsqldbDataTypeFactory</role> - </roles> - </contributor> - <contributor> - <name>Erik Price</name> - <roles> - <role>DatabaseSequenceOperation</role> - </roles> - </contributor> - <contributor> - <name>Jeremy Stein</name> - <roles> - <role>InsertIndentityOperation</role> - </roles> - </contributor> - <contributor> - <name>Keven Kizer</name> - <roles> - <role>Early guinea pig</role> - </roles> - </contributor> - <contributor> - <name>Mike Bresnahan</name> - <roles> - <role>DbUnit evangelist</role> - </roles> - </contributor> - <contributor> - <name>Andres Almiray</name> - <email>aal...@us...</email> - <roles> - <role>IDatabaseTester creator</role> - </roles> - </contributor> - </contributors> - - - <dependencies> - - <!-- - TODO: check which dependencies could marked as optional. For - instance, ant is optional because it's only necessary for the - dbunit Ant tasks. - --> - - <!-- TODO: add exclusion for dependencies that include xerces/xalan --> - - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - <version>1.5.6</version> - </dependency> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <version>3.2.1</version> - </dependency> - <dependency> - <groupId>ant</groupId> - <artifactId>ant</artifactId> - <version>1.5.4</version> - <optional>true</optional> - </dependency> - <dependency> - <groupId>org.apache.poi</groupId> - <artifactId>poi</artifactId> - <version>3.2-FINAL</version> - <optional>true</optional> - </dependency> - - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-testutil</artifactId> - <version>1.7.0</version> - <optional>true</optional> - <scope>test</scope> - </dependency> - <dependency> - <groupId>junit-addons</groupId> - <artifactId>junit-addons</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>mockobjects</groupId> - <artifactId>mockobjects-core</artifactId> - <version>0.07</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>mockmaker</groupId> - <artifactId>mmmockobjects</artifactId> - <version>1.12.0</version> - <scope>test</scope> - </dependency> - <!-- TODO: check why follow dependency is necessary --> - <dependency> - <groupId>mockobjects</groupId> - <artifactId>mockobjects-jdk1.3</artifactId> - <version>0.07</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>hsqldb</groupId> - <artifactId>hsqldb</artifactId> - <version>1.8.0.1</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <version>1.1.113</version> - <!-- Note that the 1.1.113 version is the last one officially built with JDK 1.4 --> - <scope>test</scope> - </dependency> - <dependency> - <groupId>gsbase</groupId> - <artifactId>gsbase</artifactId> - <version>2.0.1</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-nop</artifactId> - <version>1.5.6</version> - <scope>runtime</scope> - <optional>true</optional> - </dependency> - </dependencies> - - <build> - <defaultGoal>install</defaultGoal> - <sourceDirectory>src/java</sourceDirectory> - <testSourceDirectory>src/test</testSourceDirectory> - - <!-- - TODO: move to M2's expected path and separate java from test (once - SCM is migrated to SVN...) - --> - <resources> - <resource> - <directory>.</directory> - <includes> - <include>LICENSE.txt</include> - </includes> - </resource> - <resource> - <directory>src/java</directory> - <includes> - <include>**/dataset.dtd</include> - </includes> - </resource> - <resource> - <directory>src/csv</directory> - <includes> - <include>**/cvs-tests.properties</include> - </includes> - </resource> - - </resources> - <!-- - TODO: that are some resources on src that should be on test... - - <testResources> <testResource> </testResource> </testResources> - --> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <excludes> - <exclude>**/Abstract*.java</exclude> - </excludes> - <includes> - <include>**/*Test.java</include> - </includes> - <systemProperties> - <property> - <name>dbunit.profile</name> - <value>${dbunit.profile}</value> - </property> - <property> - <name>dbunit.profile.driverClass</name> - <value>${dbunit.profile.driverClass}</value> - </property> - <property> - <name>dbunit.profile.url</name> - <value>${dbunit.profile.url}</value> - </property> - <property> - <name>dbunit.profile.schema</name> - <value>${dbunit.profile.schema}</value> - </property> - <property> - <name>dbunit.profile.user</name> - <value>${dbunit.profile.user}</value> - </property> - <property> - <name>dbunit.profile.password</name> - <value>${dbunit.profile.password}</value> - </property> - <property> - <name>dbunit.profile.unsupportedFeatures</name> - <value>${dbunit.profile.unsupportedFeatures}</value> - </property> - </systemProperties> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${compileSource}</source> - <target>${compileSource}</target> - <compilerVersion>${compileSource}</compilerVersion> - <!-- - TODO somehow we must ensure that the used rt.jar is really a - 1.4 and not higher, also for continuous integration - --> - <!--<executable>${JAVA_1_4_HOME}/bin/javac</executable>--> - <debug>true</debug> - <fork>true</fork> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-release-plugin</artifactId> - <version>2.0-beta-9</version> - <configuration> - <goals>javadoc:javadoc site changes:announcement-generate assembly:assembly javadoc:jar source:jar deploy</goals> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <configuration> - <includes> - <include>/LICENSE.txt</include> - <include>**</include> - </includes> - </configuration> - </plugin> - <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <descriptors> - <descriptor>assembly.xml</descriptor> - </descriptors> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>clean</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-report-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-project-info-reports-plugin</artifactId> - </plugin> - <!-- - <plugin> <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> </plugin> - --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <configuration> - <configLocation>checkstyle.xml</configLocation> - <argLine>-Xmx512m -Xms128m</argLine> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - <configuration> - <linkXref>true</linkXref> - <sourceEncoding>utf-8</sourceEncoding> - <minimumTokens>100</minimumTokens> - <targetJdk>${compileSource}</targetJdk> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>jdepend-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <configuration> - <destDir>apidocs</destDir> - <quiet>true</quiet> - <stylesheet>maven</stylesheet> - <tags> - <tag> - <name>TODO</name> - <placement>a</placement> - <head>To do:</head> - </tag> - </tags> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>2.1</version> - <configuration> - <smtpHost>localhost</smtpHost> - <smtpPort implementation="java.lang.Integer">25</smtpPort> - <introduction>If you are reading this, the maintainer forgot to describe what's the purpose of this release!!!</introduction> - <toAddresses> - <toAddress implementation="java.lang.String">dbu...@li...</toAddress> - <toAddress implementation="java.lang.String">dbu...@li...</toAddress> - </toAddresses> - <urlDownload>http://sourceforge.net/project/showfiles.php?group_id=47439</urlDownload> - <issueLinkTemplate><![CDATA[http://sourceforge.net/support/tracker.php?aid=%ISSUE%]]></issueLinkTemplate> - </configuration> - <reportSets> - <reportSet> - <reports> - <report>changes-report</report> - <report>license</report> - </reports> - </reportSet> - </reportSets> - </plugin> - </plugins> - </reporting> - - <distributionManagement> - <snapshotRepository> - <id>sourceforge</id> - <name>SourceForge Snapshots Repo</name> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/snapshots</url> - </snapshotRepository> - <repository> - <id>sourceforge</id> - <name>SourceForge Releases Repo</name> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/official</url> - </repository> - <site> - <id>sourceforge</id> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs</url> - </site> - </distributionManagement> - - <profiles> - <profile> - <id>official</id> - <dependencies> - <dependency> - <groupId>javax.sql</groupId> - <artifactId>jdbc-stdext</artifactId> - <version>2.0</version> - <optional>true</optional> - </dependency> - </dependencies> - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${compileSource}</source> - <target>${compileSource}</target> - <compilerVersion>${compileSource}</compilerVersion> - <executable>${JAVA_1_4_HOME}/bin/javac</executable> - <debug>true</debug> - <fork>true</fork> - </configuration> - </plugin> - </plugins> - </pluginManagement> - </build> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changelog-plugin</artifactId> - </plugin> - </plugins> - </reporting> - </profile> - <profile> - <id>oracle-default</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <profile> - <id>hsqldb</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <properties> - <dbunit.profile>hsqldb</dbunit.profile> - <dbunit.profile.driverClass>org.hsqldb.jdbcDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:hsqldb:mem:.</dbunit.profile.url> - <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> - <dbunit.profile.user>sa</dbunit.profile.user> - <dbunit.profile.password></dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 10 JDBC driver for Java 1.4 --> - <profile> - <id>oracle-ojdbc14</id> - <properties> - <dbunit.profile>oracle</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 11 JDBC driver for Java 6 --> - <profile> - <id>oracle-ojdbc6</id> - <properties> - <dbunit.profile>oracle</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc6</artifactId> - <version>11.1.0.7.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "newer" Oracle10DataTypeFactory with Oracle 10 JDBC driver for Java 1.4 --> - <profile> - <id>oracle10-ojdbc14</id> - <properties> - <dbunit.profile>oracle10</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "newer" Oracle10DataTypeFactory with Oracle 11 JDBC driver for Java 6 --> - <profile> - <id>oracle10-ojdbc6</id> - <properties> - <dbunit.profile>oracle10</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc6</artifactId> - <version>11.1.0.7.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <profile> - <id>postgresql</id> - <properties> - <dbunit.profile>postgresql</dbunit.profile> - <dbunit.profile.driverClass>org.postgresql.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:postgresql://host/database</dbunit.profile.url> - <dbunit.profile.schema>public</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,CLOB,BLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>postgresql</groupId> - <artifactId>postgresql</artifactId> - <version>8.4-701.jdbc3</version> - </dependency> - </dependencies> - </profile> - <profile> - <id>mysql</id> - <properties> - <dbunit.profile>mysql</dbunit.profile> - <dbunit.profile.driverClass>com.mysql.jdbc.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:mysql://localhost:3306/dbunit</dbunit.profile.url> - <dbunit.profile.schema></dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>mysql</groupId> - <artifactId>mysql-connector-java</artifactId> - <version>5.1.6</version> - </dependency> - </dependencies> - </profile> - <profile> - <id>mssql</id> - <properties> - <dbunit.profile>mssql</dbunit.profile> - <dbunit.profile.driverClass>com.microsoft.jdbc.sqlserver.SQLServerDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:microsoft:sqlserver://localhost\\dbunit:1433;DatabaseName=dbunit;SelectMethod=cursor</dbunit.profile.url> - <dbunit.profile.schema>dbo</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <profile> - <id>db2</id> - <properties> - <dbunit.profile>db2</dbunit.profile> - <dbunit.profile.driverClass>TODO</dbunit.profile.driverClass> - <dbunit.profile.url>TODO</dbunit.profile.url> - <dbunit.profile.schema>TODO</dbunit.profile.schema> - <dbunit.profile.user>TODO</dbunit.profile.user> - <dbunit.profile.password>TODO</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>TODO</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <profile> - <id>derby</id> - <properties> - <dbunit.profile>derby</dbunit.profile> - <dbunit.profile.driverClass>org.apache.derby.jdbc.EmbeddedDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:derby:target/derby_db;create=true</dbunit.profile.url> - <dbunit.profile.schema>APP</dbunit.profile.schema> - <dbunit.profile.user>APP</dbunit.profile.user> - <dbunit.profile.password>APP</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>VARBINARY,BLOB,CLOB,TRANSACTION,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>org.apache.derby</groupId> - <artifactId>derby</artifactId> - <version>10.4.1.3</version> - <scope>test</scope> - </dependency> - </dependencies> - </profile> - <profile> - <id>h2</id> - <properties> - <dbunit.profile>h2</dbunit.profile> - <dbunit.profile.driverClass>org.h2.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:h2:target/h2/test</dbunit.profile.url> - <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> - <dbunit.profile.user>sa</dbunit.profile.user> - <dbunit.profile.password></dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <version>1.1.118</version> - </dependency> - </dependencies> - </profile> - </profiles> - -</project> +<?xml version="1.0" encoding="ISO-8859-1"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.dbunit</groupId> + <artifactId>dbunit</artifactId> + <version>2.4.7</version> + <packaging>jar</packaging> + <name>DbUnit Framework</name> + <url>http://dbunit.sourceforge.net</url> + <inceptionYear>2002</inceptionYear> + <description> + DbUnit is a JUnit extension (also usable from Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage. + </description> + <licenses> + <license> + <name>GNU Lesser General Public License, Version 2.1</name> + <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + <properties> + <compileSource>1.4</compileSource> + <checkstyle.excludes>org/dbunit/util/concurrent/*.java</checkstyle.excludes> + </properties> + + <scm> + <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</connection> + <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</developerConnection> + <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</url> + </scm> + <issueManagement> + <system>SourceForge</system> + <url>http://sourceforge.net/tracker/?group_id=47439</url> + </issueManagement> + <ciManagement> + <system>parabuild</system> + <url><![CDATA[http://parabuild.viewtier.com:8080/parabuild/index.htm?view=detailed&buildid=30]]></url> + <notifiers> + <notifier> + <type>mail</type> + <sendOnError>true</sendOnError> + <sendOnFailure>false</sendOnFailure> + <sendOnSuccess>false</sendOnSuccess> + <sendOnWarning>false</sendOnWarning> + <configuration> + <address>go...@us...</address> + </configuration> + </notifier> + </notifiers> + </ciManagement> + + <mailingLists> + <mailingList> + <name>DbUnit User List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-user</archive> + </mailingList> + <mailingList> + <name>DbUnit Developer List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-developer</archive> + </mailingList> + <mailingList> + <name>DbUnit SVN Commit List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-commit</archive> + </mailingList> + </mailingLists> + + <!-- + - Who are the developers for the project, in order of recent activity. + --> + <developers> + <!-- + - Note: email of first developer is used by the announcements-email plugin + --> + <developer> + <name>Matthias Gommeringer</name> + <id>gommma</id> + <email>go...@us...</email> + <roles> + <role>Java Developer (very active)</role> + </roles> + </developer> + <developer> + <name>John Hurst</name> + <id>jbhurst</id> + <email>jb...@us...</email> + <roles> + <role>Java Developer (very active)</role> + </roles> + </developer> + <developer> + <name>Jeff Jensen</name> + <id>jeffjensen</id> + <email>jef...@us...</email> + <roles> + <role>Java Developer (active)</role> + </roles> + </developer> + <developer> + <name>Roberto Lo Giacco</name> + <id>rlogiacco</id> + <email>rlo...@us...</email> + <organization>SmartLab</organization> + <roles> + <role>Java Developer (active)</role> + </roles> + </developer> + <developer> + <name>Felipe Leme</name> + <id>felipeal</id> + <email>db...@fe...</email> + <organization>GoldenGate Software</organization> + <timezone>-8</timezone> + <roles> + <role>Java Developer (mostly inactive :-)</role> + </roles> + </developer> + <developer> + <name>David Eric Pugh</name> + <id>dep4b</id> + <email>ep...@op...</email> + <organization>OpenSource Connections</organization> + <roles> + <role>Java Developer (inactive)</role> + </roles> + </developer> + <developer> + <name>Sebastien Le Callonnec</name> + <id>slecallonnec</id> + <email>sle...@us...</email> + <roles> + <role>Java Developer (inactive)</role> + </roles> + </developer> + <developer> + <name>Manuel Laflamme</name> + <id>mlaflamm</id> + <organization>Oz Communication</organization> + <roles> + <role>Project Founder (inactive)</role> + <!-- <role>Java Developer</role> --> + </roles> + </developer> + <developer> + <name>Benjamin Cox</name> + <id>bdrum</id> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>Original Ant Task Contributor</role> --> + </roles> + </developer> + <developer> + <name>Federico Spinazzi</name> + <id>fspinazzi</id> + <email>f.s...@ma...</email> + <organization>Master House S.r.l</organization> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>DB2 Contributor</role> --> + </roles> + </developer> + <developer> + <name>Timothy J. Ruppert</name> + <id>zieggy</id> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>Original Ant Task Contributor</role> --> + </roles> + </developer> + </developers> + + <contributors> + <contributor> + <name>Klas Axel</name> + <roles> + <role>HsqldbDataTypeFactory</role> + </roles> + </contributor> + <contributor> + <name>Erik Price</name> + <roles> + <role>DatabaseSequenceOperation</role> + </roles> + </contributor> + <contributor> + <name>Jeremy Stein</name> + <roles> + <role>InsertIndentityOperation</role> + </roles> + </contributor> + <contributor> + <name>Keven Kizer</name> + <roles> + <role>Early guinea pig</role> + </roles> + </contributor> + <contributor> + <name>Mike Bresnahan</name> + <roles> + <role>DbUnit evangelist</role> + </roles> + </contributor> + <contributor> + <name>Andres Almiray</name> + <email>aal...@us...</email> + <roles> + <role>IDatabaseTester creator</role> + </roles> + </contributor> + </contributors> + + + <dependencies> + + <!-- + TODO: check which dependencies could marked as optional. For + instance, ant is optional because it's only necessary for the + dbunit Ant tasks. + --> + + <!-- TODO: add exclusion for dependencies that include xerces/xalan --> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.5.6</version> + </dependency> + <dependency> + <groupId>commons-collections</groupId> + <artifactId>commons-collections</artifactId> + <version>3.2.1</version> + </dependency> + <dependency> + <groupId>ant</groupId> + <artifactId>ant</artifactId> + <version>1.5.4</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>org.apache.poi</groupId> + <artifactId>poi</artifactId> + <version>3.2-FINAL</version> + <optional>true</optional> + </dependency> + + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant-testutil</artifactId> + <version>1.7.0</version> + <optional>true</optional> + <scope>test</scope> + </dependency> + <dependency> + <groupId>junit-addons</groupId> + <artifactId>junit-addons</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>mockobjects</groupId> + <artifactId>mockobjects-core</artifactId> + <version>0.07</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>mockmaker</groupId> + <artifactId>mmmockobjects</artifactId> + <version>1.12.0</version> + <scope>test</scope> + </dependency> + <!-- TODO: check why follow dependency is necessary --> + <dependency> + <groupId>mockobjects</groupId> + <artifactId>mockobjects-jdk1.3</artifactId> + <version>0.07</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>hsqldb</groupId> + <artifactId>hsqldb</artifactId> + <version>1.8.0.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <version>1.1.113</version> + <!-- Note that the 1.1.113 version is the last one officially built with JDK 1.4 --> + <scope>test</scope> + </dependency> + <dependency> + <groupId>gsbase</groupId> + <artifactId>gsbase</artifactId> + <version>2.0.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-nop</artifactId> + <version>1.5.6</version> + <scope>runtime</scope> + <optional>true</optional> + </dependency> + </dependencies> + + <build> + <defaultGoal>install</defaultGoal> + <sourceDirectory>src/java</sourceDirectory> + <testSourceDirectory>src/test</testSourceDirectory> + + <!-- + TODO: move to M2's expected path and separate java from test (once + SCM is migrated to SVN...) + --> + <resources> + <resource> + <directory>.</directory> + <includes> + <include>LICENSE.txt</include> + </includes> + </resource> + <resource> + <directory>src/java</directory> + <includes> + <include>**/dataset.dtd</include> + </includes> + </resource> + <resource> + <directory>src/csv</directory> + <includes> + <include>**/cvs-tests.properties</include> + </includes> + </resource> + + </resources> + <!-- + TODO: that are some resources on src that should be on test... + + <testResources> <testResource> </testResource> </testResources> + --> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/Abstract*.java</exclude> + </excludes> + <includes> + <include>**/*Test.java</include> + </includes> + <systemProperties> + <property> + <name>dbunit.profile</name> + <value>${dbunit.profile}</value> + </property> + <property> + <name>dbunit.profile.driverClass</name> + <value>${dbunit.profile.driverClass}</value> + </property> + <property> + <name>dbunit.profile.url</name> + <value>${dbunit.profile.url}</value> + </property> + <property> + <name>dbunit.profile.schema</name> + <value>${dbunit.profile.schema}</value> + </property> + <property> + <name>dbunit.profile.user</name> + <value>${dbunit.profile.user}</value> + </property> + <property> + <name>dbunit.profile.password</name> + <value>${dbunit.profile.password}</value> + </property> + <property> + <name>dbunit.profile.unsupportedFeatures</name> + <value>${dbunit.profile.unsupportedFeatures}</value> + </property> + </systemProperties> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${compileSource}</source> + <target>${compileSource}</target> + <compilerVersion>${compileSource}</compilerVersion> + <!-- + TODO somehow we must ensure that the used rt.jar is really a + 1.4 and not higher, also for continuous integration + --> + <!--<executable>${JAVA_1_4_HOME}/bin/javac</executable>--> + <debug>true</debug> + <fork>true</fork> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.0-beta-9</version> + <configuration> + <goals>javadoc:javadoc site changes:announcement-generate assembly:assembly javadoc:jar source:jar deploy</goals> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <includes> + <include>/LICENSE.txt</include> + <include>**</include> + </includes> + </configuration> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>assembly.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>clean</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-report-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-project-info-reports-plugin</artifactId> + </plugin> + <!-- + <plugin> <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> </plugin> + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <configuration> + <configLocation>checkstyle.xml</configLocation> + <argLine>-Xmx512m -Xms128m</argLine> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + <configuration> + <linkXref>true</linkXref> + <sourceEncoding>utf-8</sourceEncoding> + <minimumTokens>100</minimumTokens> + <targetJdk>${compileSource}</targetJdk> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jdepend-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <destDir>apidocs</destDir> + <quiet>true</quiet> + <stylesheet>maven</stylesheet> + <tags> + <tag> + <name>TODO</name> + <placement>a</placement> + <head>To do:</head> + </tag> + </tags> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changes-plugin</artifactId> + <version>2.1</version> + <configuration> + <smtpHost>localhost</smtpHost> + <smtpPort implementation="java.lang.Integer">25</smtpPort> + <introduction>If you are reading this, the maintainer forgot to describe what's the purpose of this release!!!</introduction> + <toAddresses> + <toAddress implementation="java.lang.String">dbu...@li...</toAddress> + <toAddress implementation="java.lang.String">dbu...@li...</toAddress> + </toAddresses> + <urlDownload>http://sourceforge.net/project/showfiles.php?group_id=47439</urlDownload> + <issueLinkTemplate><![CDATA[http://sourceforge.net/support/tracker.php?aid=%ISSUE%]]></issueLinkTemplate> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>changes-report</report> + <report>license</report> + </reports> + </reportSet> + </reportSets> + </plugin> + </plugins> + </reporting> + + <distributionManagement> + <snapshotRepository> + <id>sourceforge</id> + <name>SourceForge Snapshots Repo</name> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/snapshots</url> + </snapshotRepository> + <repository> + <id>sourceforge</id> + <name>SourceForge Releases Repo</name> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/official</url> + </repository> + <site> + <id>sourceforge</id> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs</url> + </site> + </distributionManagement> + + <profiles> + <profile> + <id>official</id> + <dependencies> + <dependency> + <groupId>javax.sql</groupId> + <artifactId>jdbc-stdext</artifactId> + <version>2.0</version> + <optional>true</optional> + </dependency> + </dependencies> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${compileSource}</source> + <target>${compileSource}</target> + <compilerVersion>${compileSource}</compilerVersion> + <executable>${JAVA_1_4_HOME}/bin/javac</executable> + <debug>true</debug> + <fork>true</fork> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changes-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changelog-plugin</artifactId> + </plugin> + </plugins> + </reporting> + </profile> + <profile> + <id>oracle-default</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <profile> + <id>hsqldb</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <dbunit.profile>hsqldb</dbunit.profile> + <dbunit.profile.driverClass>org.hsqldb.jdbcDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:hsqldb:mem:.</dbunit.profile.url> + <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> + <dbunit.profile.user>sa</dbunit.profile.user> + <dbunit.profile.password /> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 10 JDBC driver for Java 1.4 --> + <profile> + <id>oracle-ojdbc14</id> + <properties> + <dbunit.profile>oracle</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 11 JDBC driver for Java 6 --> + <profile> + <id>oracle-ojdbc6</id> + <properties> + <dbunit.profile>oracle</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + <version>11.1.0.7.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "newer" Oracle10DataTypeFactory with Oracle 10 JDBC driver for Java 1.4 --> + <profile> + <id>oracle10-ojdbc14</id> + <properties> + <dbunit.profile>oracle10</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "newer" Oracle10DataTypeFactory with Oracle 11 JDBC driver for Java 6 --> + <profile> + <id>oracle10-ojdbc6</id> + <properties> + <dbunit.profile>oracle10</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + <version>11.1.0.7.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <profile> + <id>postgresql</id> + <properties> + <dbunit.profile>postgresql</dbunit.profile> + <dbunit.profile.driverClass>org.postgresql.Driver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:postgresql://host/database</dbunit.profile.url> + <dbunit.profile.schema>public</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,CLOB,BLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>8.4-701.jdbc3</version> + </dependency> + </dependencies> + </profile> + <profile> + <id>mysql</id> + <properties> + <dbunit.profile>mysql</dbunit.profile> + <dbunit.profile.driverClass>com.mysql.jdbc.Driver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:mysql://localhost:3306/dbunit</dbunit.profile.url> + <dbunit.profile.schema /> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + <version>5.1.6</version> + </dependency> + </dependencies> + </profile> + <profile> + <id>mssql</id> + <properties> + <dbunit.profile>mssql</dbunit.profile> + <dbunit.profile.driverClass>com.microsoft.jdbc.sqlserver.SQLServerDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:microsoft:sqlserver://localhost\\dbunit:1433;DatabaseName=dbunit;SelectMethod=cursor</dbunit.profile.url> + <dbunit.profile.schema>dbo</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <profile> + <id>db2</id> + <properties> + <dbunit.profile>db2</dbunit.profile> + <dbunit.profile.driverClass>TODO</dbunit.profile.driverClass> + <dbunit.profile.url>TODO</dbunit.profile.url> + <dbunit.profile.schema>TODO</dbunit.profile.schema> + <dbunit.profile.user>TODO</dbunit.profile.user> + <dbunit.profile.password>TODO</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>TODO</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <profile> + <id>derby</id> + <properties> + <dbunit.profile>derby</dbunit.profile> + <dbunit.profile.driverClass>org.apache.derby.jdbc.EmbeddedDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:derby:target/derby_db;create=true</dbunit.profile.url> + <dbunit.profile.schema>APP</dbunit.profile.schema> + <dbunit.profile.user>APP</dbunit.profile.user> + <dbunit.profile.password>APP</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>VARBINARY,BLOB,CLOB,TRANSACTION,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derby</artifactId> + <version>10.4.1.3</version> + <scope>test</scope> + </dependency> + </dependencies> + </profile> + <profile> + <id>h2</id> + <properties> + <dbunit.profile>h2</dbunit.profile> + <dbunit.profile.driverClass>o... [truncated message content] |
From: <rlo...@us...> - 2009-11-15 09:21:35
|
Revision: 1114 http://dbunit.svn.sourceforge.net/dbunit/?rev=1114&view=rev Author: rlogiacco Date: 2009-11-15 09:21:29 +0000 (Sun, 15 Nov 2009) Log Message: ----------- updated changes with 2.4.7 release informations Modified Paths: -------------- trunk/dbunit/src/changes/changes.xml Modified: trunk/dbunit/src/changes/changes.xml =================================================================== --- trunk/dbunit/src/changes/changes.xml 2009-11-15 09:20:10 UTC (rev 1113) +++ trunk/dbunit/src/changes/changes.xml 2009-11-15 09:21:29 UTC (rev 1114) @@ -10,7 +10,9 @@ </properties> <body> - <release version="2.4.7-SNAPSHOT" date="TBD" description="(no description)"> + <release version="2.4.8" date="TBD" description="TBD"> + </release> + <release version="2.4.7" date="Nov 09, 2009" description="Bugfixes and some non breaking refactoring"> <action dev="gommma" type="fix" issue="2685615" due-to="lumpynose">dtd for XmlDataSet</action> <action dev="gommma" type="fix" issue="2866150" due-to="rlogiacco">Column sensing not available for InputStream</action> <action dev="gommma" type="fix" issue="2741077" due-to="dnap">DatabaseSequenceFilter fails on case sensitive tables</action> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rlo...@us...> - 2009-11-15 09:20:18
|
Revision: 1113 http://dbunit.svn.sourceforge.net/dbunit/?rev=1113&view=rev Author: rlogiacco Date: 2009-11-15 09:20:10 +0000 (Sun, 15 Nov 2009) Log Message: ----------- updated scm infos as for new svn structure Modified Paths: -------------- trunk/dbunit/pom.xml Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-15 09:15:28 UTC (rev 1112) +++ trunk/dbunit/pom.xml 2009-11-15 09:20:10 UTC (rev 1113) @@ -1,828 +1,828 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.dbunit</groupId> - <artifactId>dbunit</artifactId> - <version>2.4.8-SNAPSHOT</version> - <packaging>jar</packaging> - <name>DbUnit Framework</name> - <url>http://dbunit.sourceforge.net</url> - <inceptionYear>2002</inceptionYear> - <description> - DbUnit is a JUnit extension (also usable from Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage. - </description> - <licenses> - <license> - <name>GNU Lesser General Public License, Version 2.1</name> - <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url> - <distribution>repo</distribution> - </license> - </licenses> - <properties> - <compileSource>1.4</compileSource> - <checkstyle.excludes>org/dbunit/util/concurrent/*.java</checkstyle.excludes> - </properties> - - <scm> - <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</connection> - <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</developerConnection> - <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</url> - </scm> - <issueManagement> - <system>SourceForge</system> - <url>http://sourceforge.net/tracker/?group_id=47439</url> - </issueManagement> - <ciManagement> - <system>parabuild</system> - <url><![CDATA[http://parabuild.viewtier.com:8080/parabuild/index.htm?view=detailed&buildid=30]]></url> - <notifiers> - <notifier> - <type>mail</type> - <sendOnError>true</sendOnError> - <sendOnFailure>false</sendOnFailure> - <sendOnSuccess>false</sendOnSuccess> - <sendOnWarning>false</sendOnWarning> - <configuration> - <address>go...@us...</address> - </configuration> - </notifier> - </notifiers> - </ciManagement> - - <mailingLists> - <mailingList> - <name>DbUnit User List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-user</archive> - </mailingList> - <mailingList> - <name>DbUnit Developer List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-developer</archive> - </mailingList> - <mailingList> - <name>DbUnit SVN Commit List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-commit</archive> - </mailingList> - </mailingLists> - - <!-- - - Who are the developers for the project, in order of recent activity. - --> - <developers> - <!-- - - Note: email of first developer is used by the announcements-email plugin - --> - <developer> - <name>Matthias Gommeringer</name> - <id>gommma</id> - <email>go...@us...</email> - <roles> - <role>Java Developer (very active)</role> - </roles> - </developer> - <developer> - <name>John Hurst</name> - <id>jbhurst</id> - <email>jb...@us...</email> - <roles> - <role>Java Developer (very active)</role> - </roles> - </developer> - <developer> - <name>Jeff Jensen</name> - <id>jeffjensen</id> - <email>jef...@us...</email> - <roles> - <role>Java Developer (active)</role> - </roles> - </developer> - <developer> - <name>Roberto Lo Giacco</name> - <id>rlogiacco</id> - <email>rlo...@us...</email> - <organization>SmartLab</organization> - <roles> - <role>Java Developer (active)</role> - </roles> - </developer> - <developer> - <name>Felipe Leme</name> - <id>felipeal</id> - <email>db...@fe...</email> - <organization>GoldenGate Software</organization> - <timezone>-8</timezone> - <roles> - <role>Java Developer (mostly inactive :-)</role> - </roles> - </developer> - <developer> - <name>David Eric Pugh</name> - <id>dep4b</id> - <email>ep...@op...</email> - <organization>OpenSource Connections</organization> - <roles> - <role>Java Developer (inactive)</role> - </roles> - </developer> - <developer> - <name>Sebastien Le Callonnec</name> - <id>slecallonnec</id> - <email>sle...@us...</email> - <roles> - <role>Java Developer (inactive)</role> - </roles> - </developer> - <developer> - <name>Manuel Laflamme</name> - <id>mlaflamm</id> - <organization>Oz Communication</organization> - <roles> - <role>Project Founder (inactive)</role> - <!-- <role>Java Developer</role> --> - </roles> - </developer> - <developer> - <name>Benjamin Cox</name> - <id>bdrum</id> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>Original Ant Task Contributor</role> --> - </roles> - </developer> - <developer> - <name>Federico Spinazzi</name> - <id>fspinazzi</id> - <email>f.s...@ma...</email> - <organization>Master House S.r.l</organization> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>DB2 Contributor</role> --> - </roles> - </developer> - <developer> - <name>Timothy J. Ruppert</name> - <id>zieggy</id> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>Original Ant Task Contributor</role> --> - </roles> - </developer> - </developers> - - <contributors> - <contributor> - <name>Klas Axel</name> - <roles> - <role>HsqldbDataTypeFactory</role> - </roles> - </contributor> - <contributor> - <name>Erik Price</name> - <roles> - <role>DatabaseSequenceOperation</role> - </roles> - </contributor> - <contributor> - <name>Jeremy Stein</name> - <roles> - <role>InsertIndentityOperation</role> - </roles> - </contributor> - <contributor> - <name>Keven Kizer</name> - <roles> - <role>Early guinea pig</role> - </roles> - </contributor> - <contributor> - <name>Mike Bresnahan</name> - <roles> - <role>DbUnit evangelist</role> - </roles> - </contributor> - <contributor> - <name>Andres Almiray</name> - <email>aal...@us...</email> - <roles> - <role>IDatabaseTester creator</role> - </roles> - </contributor> - </contributors> - - - <dependencies> - - <!-- - TODO: check which dependencies could marked as optional. For - instance, ant is optional because it's only necessary for the - dbunit Ant tasks. - --> - - <!-- TODO: add exclusion for dependencies that include xerces/xalan --> - - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - <version>1.5.6</version> - </dependency> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <version>3.2.1</version> - </dependency> - <dependency> - <groupId>ant</groupId> - <artifactId>ant</artifactId> - <version>1.5.4</version> - <optional>true</optional> - </dependency> - <dependency> - <groupId>org.apache.poi</groupId> - <artifactId>poi</artifactId> - <version>3.2-FINAL</version> - <optional>true</optional> - </dependency> - - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-testutil</artifactId> - <version>1.7.0</version> - <optional>true</optional> - <scope>test</scope> - </dependency> - <dependency> - <groupId>junit-addons</groupId> - <artifactId>junit-addons</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>mockobjects</groupId> - <artifactId>mockobjects-core</artifactId> - <version>0.07</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>mockmaker</groupId> - <artifactId>mmmockobjects</artifactId> - <version>1.12.0</version> - <scope>test</scope> - </dependency> - <!-- TODO: check why follow dependency is necessary --> - <dependency> - <groupId>mockobjects</groupId> - <artifactId>mockobjects-jdk1.3</artifactId> - <version>0.07</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>hsqldb</groupId> - <artifactId>hsqldb</artifactId> - <version>1.8.0.1</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <version>1.1.113</version> - <!-- Note that the 1.1.113 version is the last one officially built with JDK 1.4 --> - <scope>test</scope> - </dependency> - <dependency> - <groupId>gsbase</groupId> - <artifactId>gsbase</artifactId> - <version>2.0.1</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-nop</artifactId> - <version>1.5.6</version> - <scope>runtime</scope> - <optional>true</optional> - </dependency> - </dependencies> - - <build> - <defaultGoal>install</defaultGoal> - <sourceDirectory>src/java</sourceDirectory> - <testSourceDirectory>src/test</testSourceDirectory> - - <!-- - TODO: move to M2's expected path and separate java from test (once - SCM is migrated to SVN...) - --> - <resources> - <resource> - <directory>.</directory> - <includes> - <include>LICENSE.txt</include> - </includes> - </resource> - <resource> - <directory>src/java</directory> - <includes> - <include>**/dataset.dtd</include> - </includes> - </resource> - <resource> - <directory>src/csv</directory> - <includes> - <include>**/cvs-tests.properties</include> - </includes> - </resource> - - </resources> - <!-- - TODO: that are some resources on src that should be on test... - - <testResources> <testResource> </testResource> </testResources> - --> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <excludes> - <exclude>**/Abstract*.java</exclude> - </excludes> - <includes> - <include>**/*Test.java</include> - </includes> - <systemProperties> - <property> - <name>dbunit.profile</name> - <value>${dbunit.profile}</value> - </property> - <property> - <name>dbunit.profile.driverClass</name> - <value>${dbunit.profile.driverClass}</value> - </property> - <property> - <name>dbunit.profile.url</name> - <value>${dbunit.profile.url}</value> - </property> - <property> - <name>dbunit.profile.schema</name> - <value>${dbunit.profile.schema}</value> - </property> - <property> - <name>dbunit.profile.user</name> - <value>${dbunit.profile.user}</value> - </property> - <property> - <name>dbunit.profile.password</name> - <value>${dbunit.profile.password}</value> - </property> - <property> - <name>dbunit.profile.unsupportedFeatures</name> - <value>${dbunit.profile.unsupportedFeatures}</value> - </property> - </systemProperties> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${compileSource}</source> - <target>${compileSource}</target> - <compilerVersion>${compileSource}</compilerVersion> - <!-- - TODO somehow we must ensure that the used rt.jar is really a - 1.4 and not higher, also for continuous integration - --> - <!--<executable>${JAVA_1_4_HOME}/bin/javac</executable>--> - <debug>true</debug> - <fork>true</fork> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-release-plugin</artifactId> - <version>2.0-beta-9</version> - <configuration> - <goals>javadoc:javadoc site changes:announcement-generate assembly:assembly javadoc:jar source:jar deploy</goals> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <configuration> - <includes> - <include>/LICENSE.txt</include> - <include>**</include> - </includes> - </configuration> - </plugin> - <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <descriptors> - <descriptor>assembly.xml</descriptor> - </descriptors> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>clean</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-report-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-project-info-reports-plugin</artifactId> - </plugin> - <!-- - <plugin> <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> </plugin> - --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <configuration> - <configLocation>checkstyle.xml</configLocation> - <argLine>-Xmx512m -Xms128m</argLine> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - <configuration> - <linkXref>true</linkXref> - <sourceEncoding>utf-8</sourceEncoding> - <minimumTokens>100</minimumTokens> - <targetJdk>${compileSource}</targetJdk> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>jdepend-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <configuration> - <destDir>apidocs</destDir> - <quiet>true</quiet> - <stylesheet>maven</stylesheet> - <tags> - <tag> - <name>TODO</name> - <placement>a</placement> - <head>To do:</head> - </tag> - </tags> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>2.1</version> - <configuration> - <smtpHost>localhost</smtpHost> - <smtpPort implementation="java.lang.Integer">25</smtpPort> - <introduction>If you are reading this, the maintainer forgot to describe what's the purpose of this release!!!</introduction> - <toAddresses> - <toAddress implementation="java.lang.String">dbu...@li...</toAddress> - <toAddress implementation="java.lang.String">dbu...@li...</toAddress> - </toAddresses> - <urlDownload>http://sourceforge.net/project/showfiles.php?group_id=47439</urlDownload> - <issueLinkTemplate><![CDATA[http://sourceforge.net/support/tracker.php?aid=%ISSUE%]]></issueLinkTemplate> - </configuration> - <reportSets> - <reportSet> - <reports> - <report>changes-report</report> - <report>license</report> - </reports> - </reportSet> - </reportSets> - </plugin> - </plugins> - </reporting> - - <distributionManagement> - <snapshotRepository> - <id>sourceforge</id> - <name>SourceForge Snapshots Repo</name> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/snapshots</url> - </snapshotRepository> - <repository> - <id>sourceforge</id> - <name>SourceForge Releases Repo</name> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/official</url> - </repository> - <site> - <id>sourceforge</id> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs</url> - </site> - </distributionManagement> - - <profiles> - <profile> - <id>official</id> - <dependencies> - <dependency> - <groupId>javax.sql</groupId> - <artifactId>jdbc-stdext</artifactId> - <version>2.0</version> - <optional>true</optional> - </dependency> - </dependencies> - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${compileSource}</source> - <target>${compileSource}</target> - <compilerVersion>${compileSource}</compilerVersion> - <executable>${JAVA_1_4_HOME}/bin/javac</executable> - <debug>true</debug> - <fork>true</fork> - </configuration> - </plugin> - </plugins> - </pluginManagement> - </build> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changelog-plugin</artifactId> - </plugin> - </plugins> - </reporting> - </profile> - <profile> - <id>oracle-default</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <profile> - <id>hsqldb</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <properties> - <dbunit.profile>hsqldb</dbunit.profile> - <dbunit.profile.driverClass>org.hsqldb.jdbcDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:hsqldb:mem:.</dbunit.profile.url> - <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> - <dbunit.profile.user>sa</dbunit.profile.user> - <dbunit.profile.password /> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 10 JDBC driver for Java 1.4 --> - <profile> - <id>oracle-ojdbc14</id> - <properties> - <dbunit.profile>oracle</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 11 JDBC driver for Java 6 --> - <profile> - <id>oracle-ojdbc6</id> - <properties> - <dbunit.profile>oracle</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc6</artifactId> - <version>11.1.0.7.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "newer" Oracle10DataTypeFactory with Oracle 10 JDBC driver for Java 1.4 --> - <profile> - <id>oracle10-ojdbc14</id> - <properties> - <dbunit.profile>oracle10</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "newer" Oracle10DataTypeFactory with Oracle 11 JDBC driver for Java 6 --> - <profile> - <id>oracle10-ojdbc6</id> - <properties> - <dbunit.profile>oracle10</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc6</artifactId> - <version>11.1.0.7.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <profile> - <id>postgresql</id> - <properties> - <dbunit.profile>postgresql</dbunit.profile> - <dbunit.profile.driverClass>org.postgresql.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:postgresql://host/database</dbunit.profile.url> - <dbunit.profile.schema>public</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,CLOB,BLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>postgresql</groupId> - <artifactId>postgresql</artifactId> - <version>8.4-701.jdbc3</version> - </dependency> - </dependencies> - </profile> - <profile> - <id>mysql</id> - <properties> - <dbunit.profile>mysql</dbunit.profile> - <dbunit.profile.driverClass>com.mysql.jdbc.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:mysql://localhost:3306/dbunit</dbunit.profile.url> - <dbunit.profile.schema /> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>mysql</groupId> - <artifactId>mysql-connector-java</artifactId> - <version>5.1.6</version> - </dependency> - </dependencies> - </profile> - <profile> - <id>mssql</id> - <properties> - <dbunit.profile>mssql</dbunit.profile> - <dbunit.profile.driverClass>com.microsoft.jdbc.sqlserver.SQLServerDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:microsoft:sqlserver://localhost\\dbunit:1433;DatabaseName=dbunit;SelectMethod=cursor</dbunit.profile.url> - <dbunit.profile.schema>dbo</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <profile> - <id>db2</id> - <properties> - <dbunit.profile>db2</dbunit.profile> - <dbunit.profile.driverClass>TODO</dbunit.profile.driverClass> - <dbunit.profile.url>TODO</dbunit.profile.url> - <dbunit.profile.schema>TODO</dbunit.profile.schema> - <dbunit.profile.user>TODO</dbunit.profile.user> - <dbunit.profile.password>TODO</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>TODO</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <profile> - <id>derby</id> - <properties> - <dbunit.profile>derby</dbunit.profile> - <dbunit.profile.driverClass>org.apache.derby.jdbc.EmbeddedDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:derby:target/derby_db;create=true</dbunit.profile.url> - <dbunit.profile.schema>APP</dbunit.profile.schema> - <dbunit.profile.user>APP</dbunit.profile.user> - <dbunit.profile.password>APP</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>VARBINARY,BLOB,CLOB,TRANSACTION,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>org.apache.derby</groupId> - <artifactId>derby</artifactId> - <version>10.4.1.3</version> - <scope>test</scope> - </dependency> - </dependencies> - </profile> - <profile> - <id>h2</id> - <properties> - <dbunit.profile>h2</dbunit.profile> - <dbunit.profile.driverClass>org.h2.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:h2:target/h2/test</dbunit.profile.url> - <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> - <dbunit.profile.user>sa</dbunit.profile.user> - <dbunit.profile.password /> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <version>1.1.118</version> - </dependency> - </dependencies> - </profile> - </profiles> - -</project> +<?xml version="1.0" encoding="ISO-8859-1"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.dbunit</groupId> + <artifactId>dbunit</artifactId> + <version>2.4.7-SNAPSHOT</version> + <packaging>jar</packaging> + <name>DbUnit Framework</name> + <url>http://dbunit.sourceforge.net</url> + <inceptionYear>2002</inceptionYear> + <description> + DbUnit is a JUnit extension (also usable from Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage. + </description> + <licenses> + <license> + <name>GNU Lesser General Public License, Version 2.1</name> + <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + <properties> + <compileSource>1.4</compileSource> + <checkstyle.excludes>org/dbunit/util/concurrent/*.java</checkstyle.excludes> + </properties> + + <scm> + <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</connection> + <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</developerConnection> + <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk/dbunit</url> + </scm> + <issueManagement> + <system>SourceForge</system> + <url>http://sourceforge.net/tracker/?group_id=47439</url> + </issueManagement> + <ciManagement> + <system>parabuild</system> + <url><![CDATA[http://parabuild.viewtier.com:8080/parabuild/index.htm?view=detailed&buildid=30]]></url> + <notifiers> + <notifier> + <type>mail</type> + <sendOnError>true</sendOnError> + <sendOnFailure>false</sendOnFailure> + <sendOnSuccess>false</sendOnSuccess> + <sendOnWarning>false</sendOnWarning> + <configuration> + <address>go...@us...</address> + </configuration> + </notifier> + </notifiers> + </ciManagement> + + <mailingLists> + <mailingList> + <name>DbUnit User List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-user</archive> + </mailingList> + <mailingList> + <name>DbUnit Developer List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-developer</archive> + </mailingList> + <mailingList> + <name>DbUnit SVN Commit List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-commit</archive> + </mailingList> + </mailingLists> + + <!-- + - Who are the developers for the project, in order of recent activity. + --> + <developers> + <!-- + - Note: email of first developer is used by the announcements-email plugin + --> + <developer> + <name>Matthias Gommeringer</name> + <id>gommma</id> + <email>go...@us...</email> + <roles> + <role>Java Developer (very active)</role> + </roles> + </developer> + <developer> + <name>John Hurst</name> + <id>jbhurst</id> + <email>jb...@us...</email> + <roles> + <role>Java Developer (very active)</role> + </roles> + </developer> + <developer> + <name>Jeff Jensen</name> + <id>jeffjensen</id> + <email>jef...@us...</email> + <roles> + <role>Java Developer (active)</role> + </roles> + </developer> + <developer> + <name>Roberto Lo Giacco</name> + <id>rlogiacco</id> + <email>rlo...@us...</email> + <organization>SmartLab</organization> + <roles> + <role>Java Developer (active)</role> + </roles> + </developer> + <developer> + <name>Felipe Leme</name> + <id>felipeal</id> + <email>db...@fe...</email> + <organization>GoldenGate Software</organization> + <timezone>-8</timezone> + <roles> + <role>Java Developer (mostly inactive :-)</role> + </roles> + </developer> + <developer> + <name>David Eric Pugh</name> + <id>dep4b</id> + <email>ep...@op...</email> + <organization>OpenSource Connections</organization> + <roles> + <role>Java Developer (inactive)</role> + </roles> + </developer> + <developer> + <name>Sebastien Le Callonnec</name> + <id>slecallonnec</id> + <email>sle...@us...</email> + <roles> + <role>Java Developer (inactive)</role> + </roles> + </developer> + <developer> + <name>Manuel Laflamme</name> + <id>mlaflamm</id> + <organization>Oz Communication</organization> + <roles> + <role>Project Founder (inactive)</role> + <!-- <role>Java Developer</role> --> + </roles> + </developer> + <developer> + <name>Benjamin Cox</name> + <id>bdrum</id> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>Original Ant Task Contributor</role> --> + </roles> + </developer> + <developer> + <name>Federico Spinazzi</name> + <id>fspinazzi</id> + <email>f.s...@ma...</email> + <organization>Master House S.r.l</organization> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>DB2 Contributor</role> --> + </roles> + </developer> + <developer> + <name>Timothy J. Ruppert</name> + <id>zieggy</id> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>Original Ant Task Contributor</role> --> + </roles> + </developer> + </developers> + + <contributors> + <contributor> + <name>Klas Axel</name> + <roles> + <role>HsqldbDataTypeFactory</role> + </roles> + </contributor> + <contributor> + <name>Erik Price</name> + <roles> + <role>DatabaseSequenceOperation</role> + </roles> + </contributor> + <contributor> + <name>Jeremy Stein</name> + <roles> + <role>InsertIndentityOperation</role> + </roles> + </contributor> + <contributor> + <name>Keven Kizer</name> + <roles> + <role>Early guinea pig</role> + </roles> + </contributor> + <contributor> + <name>Mike Bresnahan</name> + <roles> + <role>DbUnit evangelist</role> + </roles> + </contributor> + <contributor> + <name>Andres Almiray</name> + <email>aal...@us...</email> + <roles> + <role>IDatabaseTester creator</role> + </roles> + </contributor> + </contributors> + + + <dependencies> + + <!-- + TODO: check which dependencies could marked as optional. For + instance, ant is optional because it's only necessary for the + dbunit Ant tasks. + --> + + <!-- TODO: add exclusion for dependencies that include xerces/xalan --> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.5.6</version> + </dependency> + <dependency> + <groupId>commons-collections</groupId> + <artifactId>commons-collections</artifactId> + <version>3.2.1</version> + </dependency> + <dependency> + <groupId>ant</groupId> + <artifactId>ant</artifactId> + <version>1.5.4</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>org.apache.poi</groupId> + <artifactId>poi</artifactId> + <version>3.2-FINAL</version> + <optional>true</optional> + </dependency> + + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant-testutil</artifactId> + <version>1.7.0</version> + <optional>true</optional> + <scope>test</scope> + </dependency> + <dependency> + <groupId>junit-addons</groupId> + <artifactId>junit-addons</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>mockobjects</groupId> + <artifactId>mockobjects-core</artifactId> + <version>0.07</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>mockmaker</groupId> + <artifactId>mmmockobjects</artifactId> + <version>1.12.0</version> + <scope>test</scope> + </dependency> + <!-- TODO: check why follow dependency is necessary --> + <dependency> + <groupId>mockobjects</groupId> + <artifactId>mockobjects-jdk1.3</artifactId> + <version>0.07</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>hsqldb</groupId> + <artifactId>hsqldb</artifactId> + <version>1.8.0.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <version>1.1.113</version> + <!-- Note that the 1.1.113 version is the last one officially built with JDK 1.4 --> + <scope>test</scope> + </dependency> + <dependency> + <groupId>gsbase</groupId> + <artifactId>gsbase</artifactId> + <version>2.0.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-nop</artifactId> + <version>1.5.6</version> + <scope>runtime</scope> + <optional>true</optional> + </dependency> + </dependencies> + + <build> + <defaultGoal>install</defaultGoal> + <sourceDirectory>src/java</sourceDirectory> + <testSourceDirectory>src/test</testSourceDirectory> + + <!-- + TODO: move to M2's expected path and separate java from test (once + SCM is migrated to SVN...) + --> + <resources> + <resource> + <directory>.</directory> + <includes> + <include>LICENSE.txt</include> + </includes> + </resource> + <resource> + <directory>src/java</directory> + <includes> + <include>**/dataset.dtd</include> + </includes> + </resource> + <resource> + <directory>src/csv</directory> + <includes> + <include>**/cvs-tests.properties</include> + </includes> + </resource> + + </resources> + <!-- + TODO: that are some resources on src that should be on test... + + <testResources> <testResource> </testResource> </testResources> + --> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/Abstract*.java</exclude> + </excludes> + <includes> + <include>**/*Test.java</include> + </includes> + <systemProperties> + <property> + <name>dbunit.profile</name> + <value>${dbunit.profile}</value> + </property> + <property> + <name>dbunit.profile.driverClass</name> + <value>${dbunit.profile.driverClass}</value> + </property> + <property> + <name>dbunit.profile.url</name> + <value>${dbunit.profile.url}</value> + </property> + <property> + <name>dbunit.profile.schema</name> + <value>${dbunit.profile.schema}</value> + </property> + <property> + <name>dbunit.profile.user</name> + <value>${dbunit.profile.user}</value> + </property> + <property> + <name>dbunit.profile.password</name> + <value>${dbunit.profile.password}</value> + </property> + <property> + <name>dbunit.profile.unsupportedFeatures</name> + <value>${dbunit.profile.unsupportedFeatures}</value> + </property> + </systemProperties> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${compileSource}</source> + <target>${compileSource}</target> + <compilerVersion>${compileSource}</compilerVersion> + <!-- + TODO somehow we must ensure that the used rt.jar is really a + 1.4 and not higher, also for continuous integration + --> + <!--<executable>${JAVA_1_4_HOME}/bin/javac</executable>--> + <debug>true</debug> + <fork>true</fork> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.0-beta-9</version> + <configuration> + <goals>javadoc:javadoc site changes:announcement-generate assembly:assembly javadoc:jar source:jar deploy</goals> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <includes> + <include>/LICENSE.txt</include> + <include>**</include> + </includes> + </configuration> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>assembly.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>clean</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-report-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-project-info-reports-plugin</artifactId> + </plugin> + <!-- + <plugin> <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> </plugin> + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <configuration> + <configLocation>checkstyle.xml</configLocation> + <argLine>-Xmx512m -Xms128m</argLine> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + <configuration> + <linkXref>true</linkXref> + <sourceEncoding>utf-8</sourceEncoding> + <minimumTokens>100</minimumTokens> + <targetJdk>${compileSource}</targetJdk> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jdepend-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <destDir>apidocs</destDir> + <quiet>true</quiet> + <stylesheet>maven</stylesheet> + <tags> + <tag> + <name>TODO</name> + <placement>a</placement> + <head>To do:</head> + </tag> + </tags> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changes-plugin</artifactId> + <version>2.1</version> + <configuration> + <smtpHost>localhost</smtpHost> + <smtpPort implementation="java.lang.Integer">25</smtpPort> + <introduction>If you are reading this, the maintainer forgot to describe what's the purpose of this release!!!</introduction> + <toAddresses> + <toAddress implementation="java.lang.String">dbu...@li...</toAddress> + <toAddress implementation="java.lang.String">dbu...@li...</toAddress> + </toAddresses> + <urlDownload>http://sourceforge.net/project/showfiles.php?group_id=47439</urlDownload> + <issueLinkTemplate><![CDATA[http://sourceforge.net/support/tracker.php?aid=%ISSUE%]]></issueLinkTemplate> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>changes-report</report> + <report>license</report> + </reports> + </reportSet> + </reportSets> + </plugin> + </plugins> + </reporting> + + <distributionManagement> + <snapshotRepository> + <id>sourceforge</id> + <name>SourceForge Snapshots Repo</name> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/snapshots</url> + </snapshotRepository> + <repository> + <id>sourceforge</id> + <name>SourceForge Releases Repo</name> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/official</url> + </repository> + <site> + <id>sourceforge</id> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs</url> + </site> + </distributionManagement> + + <profiles> + <profile> + <id>official</id> + <dependencies> + <dependency> + <groupId>javax.sql</groupId> + <artifactId>jdbc-stdext</artifactId> + <version>2.0</version> + <optional>true</optional> + </dependency> + </dependencies> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${compileSource}</source> + <target>${compileSource}</target> + <compilerVersion>${compileSource}</compilerVersion> + <executable>${JAVA_1_4_HOME}/bin/javac</executable> + <debug>true</debug> + <fork>true</fork> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changes-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changelog-plugin</artifactId> + </plugin> + </plugins> + </reporting> + </profile> + <profile> + <id>oracle-default</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <profile> + <id>hsqldb</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <dbunit.profile>hsqldb</dbunit.profile> + <dbunit.profile.driverClass>org.hsqldb.jdbcDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:hsqldb:mem:.</dbunit.profile.url> + <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> + <dbunit.profile.user>sa</dbunit.profile.user> + <dbunit.profile.password></dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 10 JDBC driver for Java 1.4 --> + <profile> + <id>oracle-ojdbc14</id> + <properties> + <dbunit.profile>oracle</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 11 JDBC driver for Java 6 --> + <profile> + <id>oracle-ojdbc6</id> + <properties> + <dbunit.profile>oracle</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + <version>11.1.0.7.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "newer" Oracle10DataTypeFactory with Oracle 10 JDBC driver for Java 1.4 --> + <profile> + <id>oracle10-ojdbc14</id> + <properties> + <dbunit.profile>oracle10</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "newer" Oracle10DataTypeFactory with Oracle 11 JDBC driver for Java 6 --> + <profile> + <id>oracle10-ojdbc6</id> + <properties> + <dbunit.profile>oracle10</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + <version>11.1.0.7.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <profile> + <id>postgresql</id> + <properties> + <dbunit.profile>postgresql</dbunit.profile> + <dbunit.profile.driverClass>org.postgresql.Driver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:postgresql://host/database</dbunit.profile.url> + <dbunit.profile.schema>public</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,CLOB,BLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>8.4-701.jdbc3</version> + </dependency> + </dependencies> + </profile> + <profile> + <id>mysql</id> + <properties> + <dbunit.profile>mysql</dbunit.profile> + <dbunit.profile.driverClass>com.mysql.jdbc.Driver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:mysql://localhost:3306/dbunit</dbunit.profile.url> + <dbunit.profile.schema></dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + <version>5.1.6</version> + </dependency> + </dependencies> + </profile> + <profile> + <id>mssql</id> + <properties> + <dbunit.profile>mssql</dbunit.profile> + <dbunit.profile.driverClass>com.microsoft.jdbc.sqlserver.SQLServerDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:microsoft:sqlserver://localhost\\dbunit:1433;DatabaseName=dbunit;SelectMethod=cursor</dbunit.profile.url> + <dbunit.profile.schema>dbo</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <profile> + <id>db2</id> + <properties> + <dbunit.profile>db2</dbunit.profile> + <dbunit.profile.driverClass>TODO</dbunit.profile.driverClass> + <dbunit.profile.url>TODO</dbunit.profile.url> + <dbunit.profile.schema>TODO</dbunit.profile.schema> + <dbunit.profile.user>TODO</dbunit.profile.user> + <dbunit.profile.password>TODO</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>TODO</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <profile> + <id>derby</id> + <properties> + <dbunit.profile>derby</dbunit.profile> + <dbunit.profile.driverClass>org.apache.derby.jdbc.EmbeddedDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:derby:target/derby_db;create=true</dbunit.profile.url> + <dbunit.profile.schema>APP</dbunit.profile.schema> + <dbunit.profile.user>APP</dbunit.profile.user> + <dbunit.profile.password>APP</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>VARBINARY,BLOB,CLOB,TRANSACTION,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derby</artifactId> + <version>10.4.1.3</version> + <scope>test</scope> + </dependency> + </dependencies> + </profile> + <profile> + <id>h2</id> + <properties> + <dbunit.profile>h2</dbunit.profile> + <dbunit.profile.driverClass>org.h2.Driver</dbunit.profile.driverClass> + <dbunit.p... [truncated message content] |
From: <rlo...@us...> - 2009-11-15 09:15:35
|
Revision: 1112 http://dbunit.svn.sourceforge.net/dbunit/?rev=1112&view=rev Author: rlogiacco Date: 2009-11-15 09:15:28 +0000 (Sun, 15 Nov 2009) Log Message: ----------- removed tag dbunit-2.4.7 because of an invalid release: rollback Removed Paths: ------------- tags/dbunit-2.4.7/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rlo...@us...> - 2009-11-15 08:48:32
|
Revision: 1111 http://dbunit.svn.sourceforge.net/dbunit/?rev=1111&view=rev Author: rlogiacco Date: 2009-11-15 08:48:20 +0000 (Sun, 15 Nov 2009) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/dbunit/pom.xml Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-15 08:48:09 UTC (rev 1110) +++ trunk/dbunit/pom.xml 2009-11-15 08:48:20 UTC (rev 1111) @@ -4,7 +4,7 @@ <groupId>org.dbunit</groupId> <artifactId>dbunit</artifactId> - <version>2.4.7</version> + <version>2.4.8-SNAPSHOT</version> <packaging>jar</packaging> <name>DbUnit Framework</name> <url>http://dbunit.sourceforge.net</url> @@ -25,9 +25,9 @@ </properties> <scm> - <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</connection> - <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</developerConnection> - <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</url> + <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</connection> + <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</developerConnection> + <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</url> </scm> <issueManagement> <system>SourceForge</system> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rlo...@us...> - 2009-11-15 08:48:16
|
Revision: 1110 http://dbunit.svn.sourceforge.net/dbunit/?rev=1110&view=rev Author: rlogiacco Date: 2009-11-15 08:48:09 +0000 (Sun, 15 Nov 2009) Log Message: ----------- [maven-scm] copy for tag dbunit-2.4.7 Added Paths: ----------- tags/dbunit-2.4.7/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rlo...@us...> - 2009-11-15 08:47:33
|
Revision: 1109 http://dbunit.svn.sourceforge.net/dbunit/?rev=1109&view=rev Author: rlogiacco Date: 2009-11-15 08:47:26 +0000 (Sun, 15 Nov 2009) Log Message: ----------- [maven-release-plugin] prepare release dbunit-2.4.7 Modified Paths: -------------- trunk/dbunit/pom.xml Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-14 14:23:57 UTC (rev 1108) +++ trunk/dbunit/pom.xml 2009-11-15 08:47:26 UTC (rev 1109) @@ -1,828 +1,828 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.dbunit</groupId> - <artifactId>dbunit</artifactId> - <version>2.4.7-SNAPSHOT</version> - <packaging>jar</packaging> - <name>DbUnit Framework</name> - <url>http://dbunit.sourceforge.net</url> - <inceptionYear>2002</inceptionYear> - <description> - DbUnit is a JUnit extension (also usable from Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage. - </description> - <licenses> - <license> - <name>GNU Lesser General Public License, Version 2.1</name> - <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url> - <distribution>repo</distribution> - </license> - </licenses> - <properties> - <compileSource>1.4</compileSource> - <checkstyle.excludes>org/dbunit/util/concurrent/*.java</checkstyle.excludes> - </properties> - - <scm> - <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</connection> - <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</developerConnection> - <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk</url> - </scm> - <issueManagement> - <system>SourceForge</system> - <url>http://sourceforge.net/tracker/?group_id=47439</url> - </issueManagement> - <ciManagement> - <system>parabuild</system> - <url><![CDATA[http://parabuild.viewtier.com:8080/parabuild/index.htm?view=detailed&buildid=30]]></url> - <notifiers> - <notifier> - <type>mail</type> - <sendOnError>true</sendOnError> - <sendOnFailure>false</sendOnFailure> - <sendOnSuccess>false</sendOnSuccess> - <sendOnWarning>false</sendOnWarning> - <configuration> - <address>go...@us...</address> - </configuration> - </notifier> - </notifiers> - </ciManagement> - - <mailingLists> - <mailingList> - <name>DbUnit User List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-user</archive> - </mailingList> - <mailingList> - <name>DbUnit Developer List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-developer</archive> - </mailingList> - <mailingList> - <name>DbUnit SVN Commit List</name> - <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</subscribe> - <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</unsubscribe> - <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-commit</archive> - </mailingList> - </mailingLists> - - <!-- - - Who are the developers for the project, in order of recent activity. - --> - <developers> - <!-- - - Note: email of first developer is used by the announcements-email plugin - --> - <developer> - <name>Matthias Gommeringer</name> - <id>gommma</id> - <email>go...@us...</email> - <roles> - <role>Java Developer (very active)</role> - </roles> - </developer> - <developer> - <name>John Hurst</name> - <id>jbhurst</id> - <email>jb...@us...</email> - <roles> - <role>Java Developer (very active)</role> - </roles> - </developer> - <developer> - <name>Jeff Jensen</name> - <id>jeffjensen</id> - <email>jef...@us...</email> - <roles> - <role>Java Developer (active)</role> - </roles> - </developer> - <developer> - <name>Roberto Lo Giacco</name> - <id>rlogiacco</id> - <email>rlo...@us...</email> - <organization>SmartLab</organization> - <roles> - <role>Java Developer (active)</role> - </roles> - </developer> - <developer> - <name>Felipe Leme</name> - <id>felipeal</id> - <email>db...@fe...</email> - <organization>GoldenGate Software</organization> - <timezone>-8</timezone> - <roles> - <role>Java Developer (mostly inactive :-)</role> - </roles> - </developer> - <developer> - <name>David Eric Pugh</name> - <id>dep4b</id> - <email>ep...@op...</email> - <organization>OpenSource Connections</organization> - <roles> - <role>Java Developer (inactive)</role> - </roles> - </developer> - <developer> - <name>Sebastien Le Callonnec</name> - <id>slecallonnec</id> - <email>sle...@us...</email> - <roles> - <role>Java Developer (inactive)</role> - </roles> - </developer> - <developer> - <name>Manuel Laflamme</name> - <id>mlaflamm</id> - <organization>Oz Communication</organization> - <roles> - <role>Project Founder (inactive)</role> - <!-- <role>Java Developer</role> --> - </roles> - </developer> - <developer> - <name>Benjamin Cox</name> - <id>bdrum</id> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>Original Ant Task Contributor</role> --> - </roles> - </developer> - <developer> - <name>Federico Spinazzi</name> - <id>fspinazzi</id> - <email>f.s...@ma...</email> - <organization>Master House S.r.l</organization> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>DB2 Contributor</role> --> - </roles> - </developer> - <developer> - <name>Timothy J. Ruppert</name> - <id>zieggy</id> - <roles> - <role>Java Developer (inactive)</role> - <!-- <role>Original Ant Task Contributor</role> --> - </roles> - </developer> - </developers> - - <contributors> - <contributor> - <name>Klas Axel</name> - <roles> - <role>HsqldbDataTypeFactory</role> - </roles> - </contributor> - <contributor> - <name>Erik Price</name> - <roles> - <role>DatabaseSequenceOperation</role> - </roles> - </contributor> - <contributor> - <name>Jeremy Stein</name> - <roles> - <role>InsertIndentityOperation</role> - </roles> - </contributor> - <contributor> - <name>Keven Kizer</name> - <roles> - <role>Early guinea pig</role> - </roles> - </contributor> - <contributor> - <name>Mike Bresnahan</name> - <roles> - <role>DbUnit evangelist</role> - </roles> - </contributor> - <contributor> - <name>Andres Almiray</name> - <email>aal...@us...</email> - <roles> - <role>IDatabaseTester creator</role> - </roles> - </contributor> - </contributors> - - - <dependencies> - - <!-- - TODO: check which dependencies could marked as optional. For - instance, ant is optional because it's only necessary for the - dbunit Ant tasks. - --> - - <!-- TODO: add exclusion for dependencies that include xerces/xalan --> - - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - <version>1.5.6</version> - </dependency> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <version>3.2.1</version> - </dependency> - <dependency> - <groupId>ant</groupId> - <artifactId>ant</artifactId> - <version>1.5.4</version> - <optional>true</optional> - </dependency> - <dependency> - <groupId>org.apache.poi</groupId> - <artifactId>poi</artifactId> - <version>3.2-FINAL</version> - <optional>true</optional> - </dependency> - - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-testutil</artifactId> - <version>1.7.0</version> - <optional>true</optional> - <scope>test</scope> - </dependency> - <dependency> - <groupId>junit-addons</groupId> - <artifactId>junit-addons</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>mockobjects</groupId> - <artifactId>mockobjects-core</artifactId> - <version>0.07</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>mockmaker</groupId> - <artifactId>mmmockobjects</artifactId> - <version>1.12.0</version> - <scope>test</scope> - </dependency> - <!-- TODO: check why follow dependency is necessary --> - <dependency> - <groupId>mockobjects</groupId> - <artifactId>mockobjects-jdk1.3</artifactId> - <version>0.07</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>hsqldb</groupId> - <artifactId>hsqldb</artifactId> - <version>1.8.0.1</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <version>1.1.113</version> - <!-- Note that the 1.1.113 version is the last one officially built with JDK 1.4 --> - <scope>test</scope> - </dependency> - <dependency> - <groupId>gsbase</groupId> - <artifactId>gsbase</artifactId> - <version>2.0.1</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-nop</artifactId> - <version>1.5.6</version> - <scope>runtime</scope> - <optional>true</optional> - </dependency> - </dependencies> - - <build> - <defaultGoal>install</defaultGoal> - <sourceDirectory>src/java</sourceDirectory> - <testSourceDirectory>src/test</testSourceDirectory> - - <!-- - TODO: move to M2's expected path and separate java from test (once - SCM is migrated to SVN...) - --> - <resources> - <resource> - <directory>.</directory> - <includes> - <include>LICENSE.txt</include> - </includes> - </resource> - <resource> - <directory>src/java</directory> - <includes> - <include>**/dataset.dtd</include> - </includes> - </resource> - <resource> - <directory>src/csv</directory> - <includes> - <include>**/cvs-tests.properties</include> - </includes> - </resource> - - </resources> - <!-- - TODO: that are some resources on src that should be on test... - - <testResources> <testResource> </testResource> </testResources> - --> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <excludes> - <exclude>**/Abstract*.java</exclude> - </excludes> - <includes> - <include>**/*Test.java</include> - </includes> - <systemProperties> - <property> - <name>dbunit.profile</name> - <value>${dbunit.profile}</value> - </property> - <property> - <name>dbunit.profile.driverClass</name> - <value>${dbunit.profile.driverClass}</value> - </property> - <property> - <name>dbunit.profile.url</name> - <value>${dbunit.profile.url}</value> - </property> - <property> - <name>dbunit.profile.schema</name> - <value>${dbunit.profile.schema}</value> - </property> - <property> - <name>dbunit.profile.user</name> - <value>${dbunit.profile.user}</value> - </property> - <property> - <name>dbunit.profile.password</name> - <value>${dbunit.profile.password}</value> - </property> - <property> - <name>dbunit.profile.unsupportedFeatures</name> - <value>${dbunit.profile.unsupportedFeatures}</value> - </property> - </systemProperties> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${compileSource}</source> - <target>${compileSource}</target> - <compilerVersion>${compileSource}</compilerVersion> - <!-- - TODO somehow we must ensure that the used rt.jar is really a - 1.4 and not higher, also for continuous integration - --> - <!--<executable>${JAVA_1_4_HOME}/bin/javac</executable>--> - <debug>true</debug> - <fork>true</fork> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-release-plugin</artifactId> - <version>2.0-beta-9</version> - <configuration> - <goals>javadoc:javadoc site changes:announcement-generate assembly:assembly javadoc:jar source:jar deploy</goals> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <configuration> - <includes> - <include>/LICENSE.txt</include> - <include>**</include> - </includes> - </configuration> - </plugin> - <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <descriptors> - <descriptor>assembly.xml</descriptor> - </descriptors> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>clean</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-report-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-project-info-reports-plugin</artifactId> - </plugin> - <!-- - <plugin> <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> </plugin> - --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <configuration> - <configLocation>checkstyle.xml</configLocation> - <argLine>-Xmx512m -Xms128m</argLine> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - <configuration> - <linkXref>true</linkXref> - <sourceEncoding>utf-8</sourceEncoding> - <minimumTokens>100</minimumTokens> - <targetJdk>${compileSource}</targetJdk> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>jdepend-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <configuration> - <destDir>apidocs</destDir> - <quiet>true</quiet> - <stylesheet>maven</stylesheet> - <tags> - <tag> - <name>TODO</name> - <placement>a</placement> - <head>To do:</head> - </tag> - </tags> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>2.1</version> - <configuration> - <smtpHost>localhost</smtpHost> - <smtpPort implementation="java.lang.Integer">25</smtpPort> - <introduction>If you are reading this, the maintainer forgot to describe what's the purpose of this release!!!</introduction> - <toAddresses> - <toAddress implementation="java.lang.String">dbu...@li...</toAddress> - <toAddress implementation="java.lang.String">dbu...@li...</toAddress> - </toAddresses> - <urlDownload>http://sourceforge.net/project/showfiles.php?group_id=47439</urlDownload> - <issueLinkTemplate><![CDATA[http://sourceforge.net/support/tracker.php?aid=%ISSUE%]]></issueLinkTemplate> - </configuration> - <reportSets> - <reportSet> - <reports> - <report>changes-report</report> - <report>license</report> - </reports> - </reportSet> - </reportSets> - </plugin> - </plugins> - </reporting> - - <distributionManagement> - <snapshotRepository> - <id>sourceforge</id> - <name>SourceForge Snapshots Repo</name> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/snapshots</url> - </snapshotRepository> - <repository> - <id>sourceforge</id> - <name>SourceForge Releases Repo</name> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/official</url> - </repository> - <site> - <id>sourceforge</id> - <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs</url> - </site> - </distributionManagement> - - <profiles> - <profile> - <id>official</id> - <dependencies> - <dependency> - <groupId>javax.sql</groupId> - <artifactId>jdbc-stdext</artifactId> - <version>2.0</version> - <optional>true</optional> - </dependency> - </dependencies> - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${compileSource}</source> - <target>${compileSource}</target> - <compilerVersion>${compileSource}</compilerVersion> - <executable>${JAVA_1_4_HOME}/bin/javac</executable> - <debug>true</debug> - <fork>true</fork> - </configuration> - </plugin> - </plugins> - </pluginManagement> - </build> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changelog-plugin</artifactId> - </plugin> - </plugins> - </reporting> - </profile> - <profile> - <id>oracle-default</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <profile> - <id>hsqldb</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <properties> - <dbunit.profile>hsqldb</dbunit.profile> - <dbunit.profile.driverClass>org.hsqldb.jdbcDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:hsqldb:mem:.</dbunit.profile.url> - <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> - <dbunit.profile.user>sa</dbunit.profile.user> - <dbunit.profile.password></dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 10 JDBC driver for Java 1.4 --> - <profile> - <id>oracle-ojdbc14</id> - <properties> - <dbunit.profile>oracle</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 11 JDBC driver for Java 6 --> - <profile> - <id>oracle-ojdbc6</id> - <properties> - <dbunit.profile>oracle</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc6</artifactId> - <version>11.1.0.7.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "newer" Oracle10DataTypeFactory with Oracle 10 JDBC driver for Java 1.4 --> - <profile> - <id>oracle10-ojdbc14</id> - <properties> - <dbunit.profile>oracle10</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.4.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <!-- "newer" Oracle10DataTypeFactory with Oracle 11 JDBC driver for Java 6 --> - <profile> - <id>oracle10-ojdbc6</id> - <properties> - <dbunit.profile>oracle10</dbunit.profile> - <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc6</artifactId> - <version>11.1.0.7.0</version> - <optional>true</optional> - </dependency> - </dependencies> - </profile> - <profile> - <id>postgresql</id> - <properties> - <dbunit.profile>postgresql</dbunit.profile> - <dbunit.profile.driverClass>org.postgresql.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:postgresql://host/database</dbunit.profile.url> - <dbunit.profile.schema>public</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,CLOB,BLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>postgresql</groupId> - <artifactId>postgresql</artifactId> - <version>8.4-701.jdbc3</version> - </dependency> - </dependencies> - </profile> - <profile> - <id>mysql</id> - <properties> - <dbunit.profile>mysql</dbunit.profile> - <dbunit.profile.driverClass>com.mysql.jdbc.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:mysql://localhost:3306/dbunit</dbunit.profile.url> - <dbunit.profile.schema></dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>mysql</groupId> - <artifactId>mysql-connector-java</artifactId> - <version>5.1.6</version> - </dependency> - </dependencies> - </profile> - <profile> - <id>mssql</id> - <properties> - <dbunit.profile>mssql</dbunit.profile> - <dbunit.profile.driverClass>com.microsoft.jdbc.sqlserver.SQLServerDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:microsoft:sqlserver://localhost\\dbunit:1433;DatabaseName=dbunit;SelectMethod=cursor</dbunit.profile.url> - <dbunit.profile.schema>dbo</dbunit.profile.schema> - <dbunit.profile.user>dbunit</dbunit.profile.user> - <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <profile> - <id>db2</id> - <properties> - <dbunit.profile>db2</dbunit.profile> - <dbunit.profile.driverClass>TODO</dbunit.profile.driverClass> - <dbunit.profile.url>TODO</dbunit.profile.url> - <dbunit.profile.schema>TODO</dbunit.profile.schema> - <dbunit.profile.user>TODO</dbunit.profile.user> - <dbunit.profile.password>TODO</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>TODO</dbunit.profile.unsupportedFeatures> - </properties> - </profile> - <profile> - <id>derby</id> - <properties> - <dbunit.profile>derby</dbunit.profile> - <dbunit.profile.driverClass>org.apache.derby.jdbc.EmbeddedDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:derby:target/derby_db;create=true</dbunit.profile.url> - <dbunit.profile.schema>APP</dbunit.profile.schema> - <dbunit.profile.user>APP</dbunit.profile.user> - <dbunit.profile.password>APP</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>VARBINARY,BLOB,CLOB,TRANSACTION,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>org.apache.derby</groupId> - <artifactId>derby</artifactId> - <version>10.4.1.3</version> - <scope>test</scope> - </dependency> - </dependencies> - </profile> - <profile> - <id>h2</id> - <properties> - <dbunit.profile>h2</dbunit.profile> - <dbunit.profile.driverClass>org.h2.Driver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc:h2:target/h2/test</dbunit.profile.url> - <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> - <dbunit.profile.user>sa</dbunit.profile.user> - <dbunit.profile.password></dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> - </properties> - <dependencies> - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <version>1.1.118</version> - </dependency> - </dependencies> - </profile> - </profiles> - -</project> +<?xml version="1.0" encoding="ISO-8859-1"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.dbunit</groupId> + <artifactId>dbunit</artifactId> + <version>2.4.7</version> + <packaging>jar</packaging> + <name>DbUnit Framework</name> + <url>http://dbunit.sourceforge.net</url> + <inceptionYear>2002</inceptionYear> + <description> + DbUnit is a JUnit extension (also usable from Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage. + </description> + <licenses> + <license> + <name>GNU Lesser General Public License, Version 2.1</name> + <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + <properties> + <compileSource>1.4</compileSource> + <checkstyle.excludes>org/dbunit/util/concurrent/*.java</checkstyle.excludes> + </properties> + + <scm> + <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</connection> + <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</developerConnection> + <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.7</url> + </scm> + <issueManagement> + <system>SourceForge</system> + <url>http://sourceforge.net/tracker/?group_id=47439</url> + </issueManagement> + <ciManagement> + <system>parabuild</system> + <url><![CDATA[http://parabuild.viewtier.com:8080/parabuild/index.htm?view=detailed&buildid=30]]></url> + <notifiers> + <notifier> + <type>mail</type> + <sendOnError>true</sendOnError> + <sendOnFailure>false</sendOnFailure> + <sendOnSuccess>false</sendOnSuccess> + <sendOnWarning>false</sendOnWarning> + <configuration> + <address>go...@us...</address> + </configuration> + </notifier> + </notifiers> + </ciManagement> + + <mailingLists> + <mailingList> + <name>DbUnit User List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-user</archive> + </mailingList> + <mailingList> + <name>DbUnit Developer List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-developer</archive> + </mailingList> + <mailingList> + <name>DbUnit SVN Commit List</name> + <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</subscribe> + <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</unsubscribe> + <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-commit</archive> + </mailingList> + </mailingLists> + + <!-- + - Who are the developers for the project, in order of recent activity. + --> + <developers> + <!-- + - Note: email of first developer is used by the announcements-email plugin + --> + <developer> + <name>Matthias Gommeringer</name> + <id>gommma</id> + <email>go...@us...</email> + <roles> + <role>Java Developer (very active)</role> + </roles> + </developer> + <developer> + <name>John Hurst</name> + <id>jbhurst</id> + <email>jb...@us...</email> + <roles> + <role>Java Developer (very active)</role> + </roles> + </developer> + <developer> + <name>Jeff Jensen</name> + <id>jeffjensen</id> + <email>jef...@us...</email> + <roles> + <role>Java Developer (active)</role> + </roles> + </developer> + <developer> + <name>Roberto Lo Giacco</name> + <id>rlogiacco</id> + <email>rlo...@us...</email> + <organization>SmartLab</organization> + <roles> + <role>Java Developer (active)</role> + </roles> + </developer> + <developer> + <name>Felipe Leme</name> + <id>felipeal</id> + <email>db...@fe...</email> + <organization>GoldenGate Software</organization> + <timezone>-8</timezone> + <roles> + <role>Java Developer (mostly inactive :-)</role> + </roles> + </developer> + <developer> + <name>David Eric Pugh</name> + <id>dep4b</id> + <email>ep...@op...</email> + <organization>OpenSource Connections</organization> + <roles> + <role>Java Developer (inactive)</role> + </roles> + </developer> + <developer> + <name>Sebastien Le Callonnec</name> + <id>slecallonnec</id> + <email>sle...@us...</email> + <roles> + <role>Java Developer (inactive)</role> + </roles> + </developer> + <developer> + <name>Manuel Laflamme</name> + <id>mlaflamm</id> + <organization>Oz Communication</organization> + <roles> + <role>Project Founder (inactive)</role> + <!-- <role>Java Developer</role> --> + </roles> + </developer> + <developer> + <name>Benjamin Cox</name> + <id>bdrum</id> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>Original Ant Task Contributor</role> --> + </roles> + </developer> + <developer> + <name>Federico Spinazzi</name> + <id>fspinazzi</id> + <email>f.s...@ma...</email> + <organization>Master House S.r.l</organization> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>DB2 Contributor</role> --> + </roles> + </developer> + <developer> + <name>Timothy J. Ruppert</name> + <id>zieggy</id> + <roles> + <role>Java Developer (inactive)</role> + <!-- <role>Original Ant Task Contributor</role> --> + </roles> + </developer> + </developers> + + <contributors> + <contributor> + <name>Klas Axel</name> + <roles> + <role>HsqldbDataTypeFactory</role> + </roles> + </contributor> + <contributor> + <name>Erik Price</name> + <roles> + <role>DatabaseSequenceOperation</role> + </roles> + </contributor> + <contributor> + <name>Jeremy Stein</name> + <roles> + <role>InsertIndentityOperation</role> + </roles> + </contributor> + <contributor> + <name>Keven Kizer</name> + <roles> + <role>Early guinea pig</role> + </roles> + </contributor> + <contributor> + <name>Mike Bresnahan</name> + <roles> + <role>DbUnit evangelist</role> + </roles> + </contributor> + <contributor> + <name>Andres Almiray</name> + <email>aal...@us...</email> + <roles> + <role>IDatabaseTester creator</role> + </roles> + </contributor> + </contributors> + + + <dependencies> + + <!-- + TODO: check which dependencies could marked as optional. For + instance, ant is optional because it's only necessary for the + dbunit Ant tasks. + --> + + <!-- TODO: add exclusion for dependencies that include xerces/xalan --> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.5.6</version> + </dependency> + <dependency> + <groupId>commons-collections</groupId> + <artifactId>commons-collections</artifactId> + <version>3.2.1</version> + </dependency> + <dependency> + <groupId>ant</groupId> + <artifactId>ant</artifactId> + <version>1.5.4</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>org.apache.poi</groupId> + <artifactId>poi</artifactId> + <version>3.2-FINAL</version> + <optional>true</optional> + </dependency> + + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant-testutil</artifactId> + <version>1.7.0</version> + <optional>true</optional> + <scope>test</scope> + </dependency> + <dependency> + <groupId>junit-addons</groupId> + <artifactId>junit-addons</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>mockobjects</groupId> + <artifactId>mockobjects-core</artifactId> + <version>0.07</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>mockmaker</groupId> + <artifactId>mmmockobjects</artifactId> + <version>1.12.0</version> + <scope>test</scope> + </dependency> + <!-- TODO: check why follow dependency is necessary --> + <dependency> + <groupId>mockobjects</groupId> + <artifactId>mockobjects-jdk1.3</artifactId> + <version>0.07</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>hsqldb</groupId> + <artifactId>hsqldb</artifactId> + <version>1.8.0.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <version>1.1.113</version> + <!-- Note that the 1.1.113 version is the last one officially built with JDK 1.4 --> + <scope>test</scope> + </dependency> + <dependency> + <groupId>gsbase</groupId> + <artifactId>gsbase</artifactId> + <version>2.0.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-nop</artifactId> + <version>1.5.6</version> + <scope>runtime</scope> + <optional>true</optional> + </dependency> + </dependencies> + + <build> + <defaultGoal>install</defaultGoal> + <sourceDirectory>src/java</sourceDirectory> + <testSourceDirectory>src/test</testSourceDirectory> + + <!-- + TODO: move to M2's expected path and separate java from test (once + SCM is migrated to SVN...) + --> + <resources> + <resource> + <directory>.</directory> + <includes> + <include>LICENSE.txt</include> + </includes> + </resource> + <resource> + <directory>src/java</directory> + <includes> + <include>**/dataset.dtd</include> + </includes> + </resource> + <resource> + <directory>src/csv</directory> + <includes> + <include>**/cvs-tests.properties</include> + </includes> + </resource> + + </resources> + <!-- + TODO: that are some resources on src that should be on test... + + <testResources> <testResource> </testResource> </testResources> + --> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/Abstract*.java</exclude> + </excludes> + <includes> + <include>**/*Test.java</include> + </includes> + <systemProperties> + <property> + <name>dbunit.profile</name> + <value>${dbunit.profile}</value> + </property> + <property> + <name>dbunit.profile.driverClass</name> + <value>${dbunit.profile.driverClass}</value> + </property> + <property> + <name>dbunit.profile.url</name> + <value>${dbunit.profile.url}</value> + </property> + <property> + <name>dbunit.profile.schema</name> + <value>${dbunit.profile.schema}</value> + </property> + <property> + <name>dbunit.profile.user</name> + <value>${dbunit.profile.user}</value> + </property> + <property> + <name>dbunit.profile.password</name> + <value>${dbunit.profile.password}</value> + </property> + <property> + <name>dbunit.profile.unsupportedFeatures</name> + <value>${dbunit.profile.unsupportedFeatures}</value> + </property> + </systemProperties> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${compileSource}</source> + <target>${compileSource}</target> + <compilerVersion>${compileSource}</compilerVersion> + <!-- + TODO somehow we must ensure that the used rt.jar is really a + 1.4 and not higher, also for continuous integration + --> + <!--<executable>${JAVA_1_4_HOME}/bin/javac</executable>--> + <debug>true</debug> + <fork>true</fork> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.0-beta-9</version> + <configuration> + <goals>javadoc:javadoc site changes:announcement-generate assembly:assembly javadoc:jar source:jar deploy</goals> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <includes> + <include>/LICENSE.txt</include> + <include>**</include> + </includes> + </configuration> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>assembly.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>clean</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-report-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-project-info-reports-plugin</artifactId> + </plugin> + <!-- + <plugin> <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> </plugin> + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <configuration> + <configLocation>checkstyle.xml</configLocation> + <argLine>-Xmx512m -Xms128m</argLine> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + <configuration> + <linkXref>true</linkXref> + <sourceEncoding>utf-8</sourceEncoding> + <minimumTokens>100</minimumTokens> + <targetJdk>${compileSource}</targetJdk> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jdepend-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <destDir>apidocs</destDir> + <quiet>true</quiet> + <stylesheet>maven</stylesheet> + <tags> + <tag> + <name>TODO</name> + <placement>a</placement> + <head>To do:</head> + </tag> + </tags> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changes-plugin</artifactId> + <version>2.1</version> + <configuration> + <smtpHost>localhost</smtpHost> + <smtpPort implementation="java.lang.Integer">25</smtpPort> + <introduction>If you are reading this, the maintainer forgot to describe what's the purpose of this release!!!</introduction> + <toAddresses> + <toAddress implementation="java.lang.String">dbu...@li...</toAddress> + <toAddress implementation="java.lang.String">dbu...@li...</toAddress> + </toAddresses> + <urlDownload>http://sourceforge.net/project/showfiles.php?group_id=47439</urlDownload> + <issueLinkTemplate><![CDATA[http://sourceforge.net/support/tracker.php?aid=%ISSUE%]]></issueLinkTemplate> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>changes-report</report> + <report>license</report> + </reports> + </reportSet> + </reportSets> + </plugin> + </plugins> + </reporting> + + <distributionManagement> + <snapshotRepository> + <id>sourceforge</id> + <name>SourceForge Snapshots Repo</name> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/snapshots</url> + </snapshotRepository> + <repository> + <id>sourceforge</id> + <name>SourceForge Releases Repo</name> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/official</url> + </repository> + <site> + <id>sourceforge</id> + <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs</url> + </site> + </distributionManagement> + + <profiles> + <profile> + <id>official</id> + <dependencies> + <dependency> + <groupId>javax.sql</groupId> + <artifactId>jdbc-stdext</artifactId> + <version>2.0</version> + <optional>true</optional> + </dependency> + </dependencies> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${compileSource}</source> + <target>${compileSource}</target> + <compilerVersion>${compileSource}</compilerVersion> + <executable>${JAVA_1_4_HOME}/bin/javac</executable> + <debug>true</debug> + <fork>true</fork> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changes-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changelog-plugin</artifactId> + </plugin> + </plugins> + </reporting> + </profile> + <profile> + <id>oracle-default</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <profile> + <id>hsqldb</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <dbunit.profile>hsqldb</dbunit.profile> + <dbunit.profile.driverClass>org.hsqldb.jdbcDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:hsqldb:mem:.</dbunit.profile.url> + <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> + <dbunit.profile.user>sa</dbunit.profile.user> + <dbunit.profile.password /> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 10 JDBC driver for Java 1.4 --> + <profile> + <id>oracle-ojdbc14</id> + <properties> + <dbunit.profile>oracle</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "original" OracleDataTypeFactory (NOT 10g) with Oracle 11 JDBC driver for Java 6 --> + <profile> + <id>oracle-ojdbc6</id> + <properties> + <dbunit.profile>oracle</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + <version>11.1.0.7.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "newer" Oracle10DataTypeFactory with Oracle 10 JDBC driver for Java 1.4 --> + <profile> + <id>oracle10-ojdbc14</id> + <properties> + <dbunit.profile>oracle10</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc14</artifactId> + <version>10.2.0.4.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <!-- "newer" Oracle10DataTypeFactory with Oracle 11 JDBC driver for Java 6 --> + <profile> + <id>oracle10-ojdbc6</id> + <properties> + <dbunit.profile>oracle10</dbunit.profile> + <dbunit.profile.driverClass>oracle.jdbc.OracleDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:oracle:thin:@demowin:1521:demowin</dbunit.profile.url> + <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,SCROLLABLE_RESULTSET</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + <version>11.1.0.7.0</version> + <optional>true</optional> + </dependency> + </dependencies> + </profile> + <profile> + <id>postgresql</id> + <properties> + <dbunit.profile>postgresql</dbunit.profile> + <dbunit.profile.driverClass>org.postgresql.Driver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:postgresql://host/database</dbunit.profile.url> + <dbunit.profile.schema>public</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>INSERT_IDENTITY,CLOB,BLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>8.4-701.jdbc3</version> + </dependency> + </dependencies> + </profile> + <profile> + <id>mysql</id> + <properties> + <dbunit.profile>mysql</dbunit.profile> + <dbunit.profile.driverClass>com.mysql.jdbc.Driver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:mysql://localhost:3306/dbunit</dbunit.profile.url> + <dbunit.profile.schema /> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + <version>5.1.6</version> + </dependency> + </dependencies> + </profile> + <profile> + <id>mssql</id> + <properties> + <dbunit.profile>mssql</dbunit.profile> + <dbunit.profile.driverClass>com.microsoft.jdbc.sqlserver.SQLServerDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:microsoft:sqlserver://localhost\\dbunit:1433;DatabaseName=dbunit;SelectMethod=cursor</dbunit.profile.url> + <dbunit.profile.schema>dbo</dbunit.profile.schema> + <dbunit.profile.user>dbunit</dbunit.profile.user> + <dbunit.profile.password>dbunit</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <profile> + <id>db2</id> + <properties> + <dbunit.profile>db2</dbunit.profile> + <dbunit.profile.driverClass>TODO</dbunit.profile.driverClass> + <dbunit.profile.url>TODO</dbunit.profile.url> + <dbunit.profile.schema>TODO</dbunit.profile.schema> + <dbunit.profile.user>TODO</dbunit.profile.user> + <dbunit.profile.password>TODO</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>TODO</dbunit.profile.unsupportedFeatures> + </properties> + </profile> + <profile> + <id>derby</id> + <properties> + <dbunit.profile>derby</dbunit.profile> + <dbunit.profile.driverClass>org.apache.derby.jdbc.EmbeddedDriver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:derby:target/derby_db;create=true</dbunit.profile.url> + <dbunit.profile.schema>APP</dbunit.profile.schema> + <dbunit.profile.user>APP</dbunit.profile.user> + <dbunit.profile.password>APP</dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>VARBINARY,BLOB,CLOB,TRANSACTION,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + </properties> + <dependencies> + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derby</artifactId> + <version>10.4.1.3</version> + <scope>test</scope> + </dependency> + </dependencies> + </profile> + <profile> + <id>h2</id> + <properties> + <dbunit.profile>h2</dbunit.profile> + <dbunit.profile.driverClass>org.h2.Driver</dbunit.... [truncated message content] |
From: <jb...@us...> - 2009-11-06 18:30:29
|
Revision: 1103 http://dbunit.svn.sourceforge.net/dbunit/?rev=1103&view=rev Author: jbhurst Date: 2009-11-06 18:30:23 +0000 (Fri, 06 Nov 2009) Log Message: ----------- [2875235] - Fixed Oracle tests for 2884634 improved Ant operation task. Modified Paths: -------------- trunk/dbunit/src/xml/antTestBuildFile.xml Modified: trunk/dbunit/src/xml/antTestBuildFile.xml =================================================================== --- trunk/dbunit/src/xml/antTestBuildFile.xml 2009-11-06 17:36:10 UTC (rev 1102) +++ trunk/dbunit/src/xml/antTestBuildFile.xml 2009-11-06 18:30:23 UTC (rev 1103) @@ -88,18 +88,22 @@ </dbunit> </target> + <!-- JH_TODO: I added the schema attribute, seems to be required for Oracle. Do we need to test other DBs without it? --> <target name="test-ordered"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" + schema="${dbunit.profile.schema}" userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="REFRESH" src="${updateDataSet}" format="flat" ordered="true"/> </dbunit> </target> + <!-- JH_TODO: I added the schema attribute, seems to be required for Oracle. Do we need to test other DBs without it? --> <target name="test-replace-ordered"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" + schema="${dbunit.profile.schema}" userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="REFRESH" src="${updateDataSet}" format="flat" ordered="true" nullToken="row 0"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-11-06 17:36:22
|
Revision: 1102 http://dbunit.svn.sourceforge.net/dbunit/?rev=1102&view=rev Author: jbhurst Date: 2009-11-06 17:36:10 +0000 (Fri, 06 Nov 2009) Log Message: ----------- Removed tabs, tidied up indentation Modified Paths: -------------- trunk/dbunit/src/xml/antTestBuildFile.xml Modified: trunk/dbunit/src/xml/antTestBuildFile.xml =================================================================== --- trunk/dbunit/src/xml/antTestBuildFile.xml 2009-11-06 03:26:49 UTC (rev 1101) +++ trunk/dbunit/src/xml/antTestBuildFile.xml 2009-11-06 17:36:10 UTC (rev 1102) @@ -22,7 +22,7 @@ <target name="no-driver"> <dbunit url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="CLEAN_INSERT" src="${testDataSet}"/> </dbunit> @@ -30,7 +30,7 @@ <target name="no-db-url"> <dbunit driver="${dbunit.profile.driverClass}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="CLEAN_INSERT" src="${testDataSet}"/> </dbunit> @@ -39,7 +39,6 @@ <target name="no-userid"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - password="${dbunit.profile.password}"> <operation type="CLEAN_INSERT" src="${testDataSet}"/> </dbunit> @@ -48,7 +47,7 @@ <target name="no-password"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}"> + userid="${dbunit.profile.user}"> <operation type="CLEAN_INSERT" src="${testDataSet}"/> </dbunit> </target> @@ -56,7 +55,7 @@ <target name="invalid-db-info"> <dbunit driver="${dbunit.profile.driverClass}" url="jdbc:foobar://localhost/dbunittest" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="CLEAN_INSERT" src="${testDataSet}"/> </dbunit> @@ -65,7 +64,7 @@ <target name="set-format-xml"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="INSERT" src="${testDataSet}" format="xml"/> </dbunit> @@ -74,7 +73,7 @@ <target name="test-type-none"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="NONE" src="${testDataSet}"/> </dbunit> @@ -110,7 +109,7 @@ <target name="test-type-insert"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="INSERT" src="${testDataSet}"/> </dbunit> @@ -119,7 +118,7 @@ <target name="test-type-update"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="UPDATE" src="${updateDataSet}"/> </dbunit> @@ -128,7 +127,7 @@ <target name="test-type-refresh"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="REFRESH" src="${updateDataSet}"/> </dbunit> @@ -137,7 +136,7 @@ <target name="test-type-delete"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="DELETE" src="${updateDataSet}"/> </dbunit> @@ -146,7 +145,7 @@ <target name="test-type-delete-all"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="DELETE_ALL" src="${testDataSet}"/> </dbunit> @@ -155,7 +154,7 @@ <target name="test-type-clean-insert"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="CLEAN_INSERT" src="${testDataSet}"/> </dbunit> @@ -164,7 +163,7 @@ <target name="test-type-mssql-insert" depends="test-type-delete-all"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="MSSQL_INSERT" src="${testDataSet}"/> </dbunit> @@ -173,7 +172,7 @@ <target name="test-type-mssql-refresh"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="MSSQL_REFRESH" src="${updateDataSet}"/> </dbunit> @@ -182,7 +181,7 @@ <target name="test-type-mssql-clean-insert"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="MSSQL_CLEAN_INSERT" src="${testDataSet}"/> </dbunit> @@ -191,7 +190,7 @@ <target name="invalid-type"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <operation type="CLEAN_INSERT" src="${testDataSet}"/> <operation type="DELETE" src="${updateDataSet}"/> @@ -308,70 +307,66 @@ </target> <target name="test-export-with-queryset" depends="test-type-clean-insert"> - - <dbunit driver="${dbunit.profile.driverClass}" + <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> - <export dest="${exportCsv}" format="csv"> - <query name="SECOND_TABLE" sql="SELECT * FROM SECOND_TABLE"/> - <queryset> - <query name="TEST_TABLE" - sql="SELECT * FROM TEST_TABLE WHERE COLUMN0 = 'row 0 col 0'"/> - </queryset> - <queryset> - <query name="PK_TABLE" sql="SELECT * FROM PK_TABLE"/> - <query name="TEST_TABLE" - sql="SELECT * FROM TEST_TABLE WHERE COLUMN0 = 'row 1 col 0'"/> - </queryset> - <table name="EMPTY_TABLE"/> + <query name="SECOND_TABLE" sql="SELECT * FROM SECOND_TABLE"/> + <queryset> + <query name="TEST_TABLE" + sql="SELECT * FROM TEST_TABLE WHERE COLUMN0 = 'row 0 col 0'"/> + </queryset> + <queryset> + <query name="PK_TABLE" sql="SELECT * FROM PK_TABLE"/> + <query name="TEST_TABLE" + sql="SELECT * FROM TEST_TABLE WHERE COLUMN0 = 'row 1 col 0'"/> + </queryset> + <table name="EMPTY_TABLE"/> </export> </dbunit> <delete dir="${exportCsv}" failonerror="false" /> </target> <target name="invalid-queryset"> - <dbunit driver="${dbunit.profile.driverClass}" + <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <export dest="${exporDataSet}" format="flat"> - <queryset id="someid" refid="someid"/> + <queryset id="someid" refid="someid"/> </export> </dbunit> <delete file="${exportDataSet}"/> </target> <target name="test-queryset-reference"> + <queryset id="queryset-id"> + <query name="TEST_TABLE" + sql="SELECT * FROM TEST_TABLE WHERE COLUMN0 = '@colValue@'"/> + <query name="SECOND_TABLE" + sql="SELECT B.* FROM TEST_TABLE A, SECOND_TABLE B WHERE A.COLUMN0 = '@colValue@' AND B.COLUMN0 = A.COLUMN0"/> + </queryset> - <queryset id="queryset-id"> - <query name="TEST_TABLE" - sql="SELECT * FROM TEST_TABLE WHERE COLUMN0 = '@colValue@'"/> - <query name="SECOND_TABLE" - sql="SELECT B.* FROM TEST_TABLE A, SECOND_TABLE B WHERE A.COLUMN0 = '@colValue@' AND B.COLUMN0 = A.COLUMN0"/> - </queryset> - - <dbunit driver="${dbunit.profile.driverClass}" + <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <export dest="${exportDataSet}" format="flat"> - <queryset refid="queryset-id"> - <filterset> - <filter token="colValue" value="row0 col0"/> - </filterset> - </queryset> + <queryset refid="queryset-id"> + <filterset> + <filter token="colValue" value="row0 col0"/> + </filterset> + </queryset> </export> </dbunit> <delete file="${exportDataSet}"/> </target> - <target name="invalid-export-format"> <dbunit driver="${dbunit.profile.driverClass}" url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" + userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <export dest="${exportDtd}" format="invalid"/> </dbunit> @@ -413,7 +408,6 @@ url="${dbunit.profile.url}" userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> - <export dest="${exportDataSet}" format="flat"> <table name="TEST_TABLE" /> </export> @@ -431,7 +425,7 @@ password=""> <operation type="INSERT" src="${testDataSet}" format="xml"/> <classpath> - <pathelement location="./lib/mm.mysql-2.0.11-bin.jar"/> + <pathelement location="./lib/mm.mysql-2.0.11-bin.jar"/> </classpath> </dbunit> </target> @@ -443,45 +437,45 @@ password=""> <operation type="INSERT" src="${testDataSet}" format="xml"/> <classpath> - <pathelement location="./lib/unknown.jar"/> + <pathelement location="./lib/unknown.jar"/> </classpath> </dbunit> </target> - <target name="test-datatypefactory"> - <dbunit driver="${dbunit.profile.driverClass}" - datatypeFactory="org.dbunit.ext.oracle.OracleDataTypeFactory" - url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" - password="${dbunit.profile.password}"> - <operation type="NONE"/> - </dbunit> - </target> + <target name="test-datatypefactory"> + <dbunit driver="${dbunit.profile.driverClass}" + datatypeFactory="org.dbunit.ext.oracle.OracleDataTypeFactory" + url="${dbunit.profile.url}" + userid="${dbunit.profile.user}" + password="${dbunit.profile.password}"> + <operation type="NONE"/> + </dbunit> + </target> - <target name="test-escapepattern"> - <dbunit driver="${dbunit.profile.driverClass}" - escapePattern="[?]" - url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" - password="${dbunit.profile.password}"> - <operation type="NONE" src="${testDataSet}"/> - </dbunit> - </target> + <target name="test-escapepattern"> + <dbunit driver="${dbunit.profile.driverClass}" + escapePattern="[?]" + url="${dbunit.profile.url}" + userid="${dbunit.profile.user}" + password="${dbunit.profile.password}"> + <operation type="NONE" src="${testDataSet}"/> + </dbunit> + </target> - <target name="test-datatypefactory-via-generic-config"> - <dbunit driver="${dbunit.profile.driverClass}" - url="${dbunit.profile.url}" - userid="${dbunit.profile.user}" - password="${dbunit.profile.password}"> - <dbconfig> - <property name="datatypeFactory" value="org.dbunit.ext.oracle.OracleDataTypeFactory" /> - <property name="tableType" value="TABLE,SYNONYM" /> - <feature name="batchedStatements" value="true" /> - <feature name="caseSensitiveTableNames" value="true" /> - </dbconfig> - <operation type="NONE"/> - </dbunit> - </target> + <target name="test-datatypefactory-via-generic-config"> + <dbunit driver="${dbunit.profile.driverClass}" + url="${dbunit.profile.url}" + userid="${dbunit.profile.user}" + password="${dbunit.profile.password}"> + <dbconfig> + <property name="datatypeFactory" value="org.dbunit.ext.oracle.OracleDataTypeFactory" /> + <property name="tableType" value="TABLE,SYNONYM" /> + <feature name="batchedStatements" value="true" /> + <feature name="caseSensitiveTableNames" value="true" /> + </dbconfig> + <operation type="NONE"/> + </dbunit> + </target> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-11-06 03:27:00
|
Revision: 1101 http://dbunit.svn.sourceforge.net/dbunit/?rev=1101&view=rev Author: jbhurst Date: 2009-11-06 03:26:49 +0000 (Fri, 06 Nov 2009) Log Message: ----------- [2875235] - integration tests working with h2 profile Modified Paths: -------------- trunk/dbunit/pom.xml trunk/dbunit/src/test/org/dbunit/DatabaseEnvironment.java trunk/dbunit/src/test/org/dbunit/H2Environment.java Added Paths: ----------- trunk/dbunit/src/sql/h2.sql Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-06 02:51:43 UTC (rev 1100) +++ trunk/dbunit/pom.xml 2009-11-06 03:26:49 UTC (rev 1101) @@ -808,13 +808,20 @@ <id>h2</id> <properties> <dbunit.profile>h2</dbunit.profile> - <dbunit.profile.driverClass>TODO</dbunit.profile.driverClass> - <dbunit.profile.url>TODO</dbunit.profile.url> - <dbunit.profile.schema>TODO</dbunit.profile.schema> - <dbunit.profile.user>TODO</dbunit.profile.user> - <dbunit.profile.password>TODO</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>TODO</dbunit.profile.unsupportedFeatures> + <dbunit.profile.driverClass>org.h2.Driver</dbunit.profile.driverClass> + <dbunit.profile.url>jdbc:h2:target/h2/test</dbunit.profile.url> + <dbunit.profile.schema>PUBLIC</dbunit.profile.schema> + <dbunit.profile.user>sa</dbunit.profile.user> + <dbunit.profile.password></dbunit.profile.password> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,TRUNCATE_TABLE,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> </properties> + <dependencies> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <version>1.1.118</version> + </dependency> + </dependencies> </profile> </profiles> Added: trunk/dbunit/src/sql/h2.sql =================================================================== --- trunk/dbunit/src/sql/h2.sql (rev 0) +++ trunk/dbunit/src/sql/h2.sql 2009-11-06 03:26:49 UTC (rev 1101) @@ -0,0 +1,93 @@ +----------------------------------------------------------------------------- +-- TEST_TABLE +----------------------------------------------------------------------------- + +DROP TABLE IF EXISTS TEST_TABLE; +CREATE TABLE TEST_TABLE + (COLUMN0 VARCHAR(32), + COLUMN1 VARCHAR(32), + COLUMN2 VARCHAR(32), + COLUMN3 VARCHAR(32)); + +----------------------------------------------------------------------------- +-- SECOND_TABLE +----------------------------------------------------------------------------- + +DROP TABLE IF EXISTS SECOND_TABLE; +CREATE TABLE SECOND_TABLE + (COLUMN0 VARCHAR(32), + COLUMN1 VARCHAR(32), + COLUMN2 VARCHAR(32), + COLUMN3 VARCHAR(32)); + +----------------------------------------------------------------------------- +-- EMPTY_TABLE +----------------------------------------------------------------------------- + +DROP TABLE IF EXISTS EMPTY_TABLE; +CREATE TABLE EMPTY_TABLE + (COLUMN0 VARCHAR(32), + COLUMN1 VARCHAR(32), + COLUMN2 VARCHAR(32), + COLUMN3 VARCHAR(32)); + +/* +----------------------------------------------------------------------------- +-- ESCAPED TABLE +----------------------------------------------------------------------------- + +CREATE TABLE "ESCAPED TABLE" + (COLUMN0 VARCHAR(32), + COLUMN1 VARCHAR(32), + COLUMN2 VARCHAR(32), + "COLUMN 3" VARCHAR(32)); +*/ + +----------------------------------------------------------------------------- +-- PK_TABLE +----------------------------------------------------------------------------- + +DROP TABLE IF EXISTS PK_TABLE; +CREATE TABLE PK_TABLE + (PK0 NUMERIC(38, 0) NOT NULL, + PK1 NUMERIC(38, 0) NOT NULL, + PK2 NUMERIC(38, 0) NOT NULL, + NORMAL0 VARCHAR(32), + NORMAL1 VARCHAR(32), PRIMARY KEY (PK0, PK1, PK2)); + +----------------------------------------------------------------------------- +-- ONLY_PK_TABLE +----------------------------------------------------------------------------- + +DROP TABLE IF EXISTS ONLY_PK_TABLE; +CREATE TABLE ONLY_PK_TABLE + (PK0 NUMERIC(38, 0) NOT NULL PRIMARY KEY); + +----------------------------------------------------------------------------- +-- EMPTY_MULTITYPE_TABLE +----------------------------------------------------------------------------- + +DROP TABLE IF EXISTS EMPTY_MULTITYPE_TABLE; +CREATE TABLE EMPTY_MULTITYPE_TABLE + (VARCHAR_COL VARCHAR(32), + NUMERIC_COL NUMERIC(38, 0), + TIMESTAMP_COL TIMESTAMP, + VARBINARY_COL VARBINARY(254)); + +----------------------------------------------------------------------------- +-- IDENTITY_TABLE +----------------------------------------------------------------------------- +DROP TABLE IF EXISTS IDENTITY_TABLE; +CREATE TABLE IDENTITY_TABLE + (IDENTITY_TABLE_ID IDENTITY NOT NULL, + COLUMN0 VARCHAR(32), + COLUMN1 VARCHAR(32), + PRIMARY KEY (IDENTITY_TABLE_ID)); + +----------------------------------------------------------------------------- +-- TEST_IDENTITY_NOT_PK +----------------------------------------------------------------------------- +DROP TABLE IF EXISTS TEST_IDENTITY_NOT_PK; +CREATE TABLE TEST_IDENTITY_NOT_PK + (COL01 IDENTITY NOT NULL, + COL02 VARCHAR(64)); Property changes on: trunk/dbunit/src/sql/h2.sql ___________________________________________________________________ Added: svn:keywords + Id Modified: trunk/dbunit/src/test/org/dbunit/DatabaseEnvironment.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/DatabaseEnvironment.java 2009-11-06 02:51:43 UTC (rev 1100) +++ trunk/dbunit/src/test/org/dbunit/DatabaseEnvironment.java 2009-11-06 03:26:49 UTC (rev 1101) @@ -78,6 +78,10 @@ { INSTANCE = new DerbyEnvironment(profile); } + else if (profileName.equals("h2")) + { + INSTANCE = new H2Environment(profile); + } else { INSTANCE = new DatabaseEnvironment(profile); Modified: trunk/dbunit/src/test/org/dbunit/H2Environment.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/H2Environment.java 2009-11-06 02:51:43 UTC (rev 1100) +++ trunk/dbunit/src/test/org/dbunit/H2Environment.java 2009-11-06 03:26:49 UTC (rev 1101) @@ -44,7 +44,7 @@ super(profile); // Creates required tables into the hypersonic in-memory database - File ddlFile = new File("src/sql/hypersonic.sql"); + File ddlFile = new File("src/sql/h2.sql"); Connection connection = getConnection().getConnection(); executeDdlFile(ddlFile, connection); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-11-06 02:51:57
|
Revision: 1100 http://dbunit.svn.sourceforge.net/dbunit/?rev=1100&view=rev Author: jbhurst Date: 2009-11-06 02:51:43 +0000 (Fri, 06 Nov 2009) Log Message: ----------- [2875235] - integration tests working with derby profile Modified Paths: -------------- trunk/dbunit/pom.xml trunk/dbunit/src/site/apt/integrationtests.apt Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-06 02:44:43 UTC (rev 1099) +++ trunk/dbunit/pom.xml 2009-11-06 02:51:43 UTC (rev 1100) @@ -789,7 +789,7 @@ <properties> <dbunit.profile>derby</dbunit.profile> <dbunit.profile.driverClass>org.apache.derby.jdbc.EmbeddedDriver</dbunit.profile.driverClass> - <dbunit.profile.url>jdbc\:derby\:target\/derby_db;create\=true</dbunit.profile.url> + <dbunit.profile.url>jdbc:derby:target/derby_db;create=true</dbunit.profile.url> <dbunit.profile.schema>APP</dbunit.profile.schema> <dbunit.profile.user>APP</dbunit.profile.user> <dbunit.profile.password>APP</dbunit.profile.password> Modified: trunk/dbunit/src/site/apt/integrationtests.apt =================================================================== --- trunk/dbunit/src/site/apt/integrationtests.apt 2009-11-06 02:44:43 UTC (rev 1099) +++ trunk/dbunit/src/site/apt/integrationtests.apt 2009-11-06 02:51:43 UTC (rev 1100) @@ -176,5 +176,17 @@ <<Note:>> currently the oracle-default profile is required, along with the mysql profile, to ensure all JARs required on the compile-time classpath in Maven. +Running Apache Derby Integration Tests + + Nothing special is required. + + Run the full test suite, including integration tests, with this command: + +--- +mvn clean test -Poracle-default,derby +--- + + <<Note:>> currently the oracle-default profile is required, along with the derby profile, to ensure all JARs required on the compile-time classpath in Maven. + TODO: Other databases. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-11-06 02:45:03
|
Revision: 1099 http://dbunit.svn.sourceforge.net/dbunit/?rev=1099&view=rev Author: jbhurst Date: 2009-11-06 02:44:43 +0000 (Fri, 06 Nov 2009) Log Message: ----------- [2875235] - added transaction feature to MySQL tests Modified Paths: -------------- trunk/dbunit/pom.xml Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-06 02:07:25 UTC (rev 1098) +++ trunk/dbunit/pom.xml 2009-11-06 02:44:43 UTC (rev 1099) @@ -750,7 +750,7 @@ <dbunit.profile.schema></dbunit.profile.schema> <dbunit.profile.user>dbunit</dbunit.profile.user> <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,TRANSACTION,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> </properties> <dependencies> <dependency> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-11-06 02:07:33
|
Revision: 1098 http://dbunit.svn.sourceforge.net/dbunit/?rev=1098&view=rev Author: jbhurst Date: 2009-11-06 02:07:25 +0000 (Fri, 06 Nov 2009) Log Message: ----------- [2215029] - Move dbunit-maven-plugin from codehaus to DBUnit - added target directories to ignore list Property Changed: ---------------- trunk/dbunit/ trunk/dbunit-maven-plugin/ Property changes on: trunk/dbunit ___________________________________________________________________ Modified: svn:ignore - .classpath .project .settings + .classpath .project .settings target Property changes on: trunk/dbunit-maven-plugin ___________________________________________________________________ Modified: svn:ignore - .classpath .project .settings + .classpath .project .settings target This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-11-06 02:01:04
|
Revision: 1097 http://dbunit.svn.sourceforge.net/dbunit/?rev=1097&view=rev Author: jbhurst Date: 2009-11-06 02:00:47 +0000 (Fri, 06 Nov 2009) Log Message: ----------- [2875235] - integration tests working with mysql profile. Modified Paths: -------------- trunk/dbunit/pom.xml trunk/dbunit/src/site/apt/integrationtests.apt trunk/dbunit/src/sql/mysql.sql trunk/dbunit/src/test/org/dbunit/DatabaseEnvironment.java trunk/dbunit/src/test/org/dbunit/ant/DbUnitTaskTest.java trunk/dbunit/src/test/org/dbunit/database/AbstractDatabaseConnectionTest.java trunk/dbunit/src/test/org/dbunit/database/AbstractDatabaseTesterConnectionTest.java trunk/dbunit/src/test/org/dbunit/database/CachedResultSetTableTest.java trunk/dbunit/src/test/org/dbunit/database/DatabaseTableMetaDataTest.java trunk/dbunit/src/test/org/dbunit/database/ForwardOnlyResultSetTableTest.java trunk/dbunit/src/test/org/dbunit/database/QueryDataSetTest.java trunk/dbunit/src/test/org/dbunit/database/ScrollableResultSetTableTest.java trunk/dbunit/src/test/org/dbunit/operation/RefreshOperationTest.java trunk/dbunit/src/test/org/dbunit/operation/UpdateOperationTest.java trunk/dbunit/src/xml/antTestBuildFile.xml trunk/pom.xml Added Paths: ----------- trunk/dbunit/src/test/org/dbunit/MySqlEnvironment.java Modified: trunk/dbunit/pom.xml =================================================================== --- trunk/dbunit/pom.xml 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/pom.xml 2009-11-06 02:00:47 UTC (rev 1097) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> - + <groupId>org.dbunit</groupId> <artifactId>dbunit</artifactId> <version>2.4.7-SNAPSHOT</version> @@ -747,11 +747,18 @@ <dbunit.profile>mysql</dbunit.profile> <dbunit.profile.driverClass>com.mysql.jdbc.Driver</dbunit.profile.driverClass> <dbunit.profile.url>jdbc:mysql://localhost:3306/dbunit</dbunit.profile.url> - <dbunit.profile.schema>DBUNIT</dbunit.profile.schema> + <dbunit.profile.schema></dbunit.profile.schema> <dbunit.profile.user>dbunit</dbunit.profile.user> <dbunit.profile.password>dbunit</dbunit.profile.password> - <dbunit.profile.unsupportedFeatures>BLOB,CLOB,TRANSACTION,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> + <dbunit.profile.unsupportedFeatures>BLOB,CLOB,SCROLLABLE_RESULTSET,TRANSACTION,INSERT_IDENTITY,SDO_GEOMETRY</dbunit.profile.unsupportedFeatures> </properties> + <dependencies> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + <version>5.1.6</version> + </dependency> + </dependencies> </profile> <profile> <id>mssql</id> Modified: trunk/dbunit/src/site/apt/integrationtests.apt =================================================================== --- trunk/dbunit/src/site/apt/integrationtests.apt 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/site/apt/integrationtests.apt 2009-11-06 02:00:47 UTC (rev 1097) @@ -138,5 +138,43 @@ <<Note:>> currently the oracle-default profile is required, along with the postgresql profile, to ensure all JARs required on the compile-time classpath in Maven. +Running MySQL Integration Tests + + [[1]] Install MySQL database. This can be on your local machine, or you can use any MySQL database you have access to. + + [[2]] Create a "dbunit" user and database, for example with these commands: + +--- +mysql -uroot -p <<EOF +# (enter database root password) +CREATE DATABASE dbunit; +GRANT ALL ON dbunit.* TO dbunit@localhost IDENTIFIED BY "dbunit"; +EOF +--- + + These values are the defaults configured in the project. + If you use different values, you will need to override the properties in your Maven settings.xml. + If you need to connect remotely to your database your need to specify the client host name. + You may also need to adjust your MySQL configuration to permit remote connection. + + [[3]] Log in to your dbunit user and run src/sql/mysql.sql: + +--- +mysql -hmysql_host -Ddbunit -udbunit -pdbunit <src/sql/mysql.sql +--- + + [] + + This should create the DbUnit test schema in your MySQL database. + You are now ready to run tests. + + Run the full test suite, including integration tests, with this command: + +--- +mvn clean test -Poracle-default,mysql +--- + + <<Note:>> currently the oracle-default profile is required, along with the mysql profile, to ensure all JARs required on the compile-time classpath in Maven. + TODO: Other databases. Modified: trunk/dbunit/src/sql/mysql.sql =================================================================== --- trunk/dbunit/src/sql/mysql.sql 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/sql/mysql.sql 2009-11-06 02:00:47 UTC (rev 1097) @@ -1,63 +1,63 @@ ------------------------------------------------------------------------------ --- TEST_TABLE ------------------------------------------------------------------------------ +#--------------------------------------------------------------------------- +# TEST_TABLE +#--------------------------------------------------------------------------- -DROP TABLE IF EXISTS test_table; -CREATE TABLE test_table +DROP TABLE IF EXISTS TEST_TABLE; +CREATE TABLE TEST_TABLE (COLUMN0 VARCHAR(32), COLUMN1 VARCHAR(32), COLUMN2 VARCHAR(32), COLUMN3 VARCHAR(32)) TYPE = InnoDB; ------------------------------------------------------------------------------ --- SECOND_TABLE ------------------------------------------------------------------------------ +#--------------------------------------------------------------------------- +# SECOND_TABLE +#--------------------------------------------------------------------------- -DROP TABLE IF EXISTS second_table; -CREATE TABLE second_table +DROP TABLE IF EXISTS SECOND_TABLE; +CREATE TABLE SECOND_TABLE (COLUMN0 VARCHAR(32), COLUMN1 VARCHAR(32), COLUMN2 VARCHAR(32), COLUMN3 VARCHAR(32)) TYPE = InnoDB; ------------------------------------------------------------------------------ --- EMPTY_TABLE ------------------------------------------------------------------------------ +#--------------------------------------------------------------------------- +# EMPTY_TABLE +#--------------------------------------------------------------------------- -DROP TABLE IF EXISTS empty_table; -CREATE TABLE empty_table +DROP TABLE IF EXISTS EMPTY_TABLE; +CREATE TABLE EMPTY_TABLE (COLUMN0 VARCHAR(32), COLUMN1 VARCHAR(32), COLUMN2 VARCHAR(32), COLUMN3 VARCHAR(32)) TYPE = InnoDB; ------------------------------------------------------------------------------ --- PK_TABLE ------------------------------------------------------------------------------ +#--------------------------------------------------------------------------- +# PK_TABLE +#--------------------------------------------------------------------------- -DROP TABLE IF EXISTS pk_table; -CREATE TABLE pk_table +DROP TABLE IF EXISTS PK_TABLE; +CREATE TABLE PK_TABLE (PK0 NUMERIC(38, 0) NOT NULL, PK1 NUMERIC(38, 0) NOT NULL, PK2 NUMERIC(38, 0) NOT NULL, NORMAL0 VARCHAR(32), NORMAL1 VARCHAR(32), PRIMARY KEY (PK0, PK1, PK2)) TYPE = InnoDB; ------------------------------------------------------------------------------ --- ONLY_PK_TABLE ------------------------------------------------------------------------------ +#--------------------------------------------------------------------------- +# ONLY_PK_TABLE +#--------------------------------------------------------------------------- -DROP TABLE IF EXISTS only_pk_table; -CREATE TABLE only_pk_table +DROP TABLE IF EXISTS ONLY_PK_TABLE; +CREATE TABLE ONLY_PK_TABLE (PK0 NUMERIC(38, 0) NOT NULL PRIMARY KEY) TYPE = InnoDB; ------------------------------------------------------------------------------ --- EMPTY_MULTITYPE_TABLE ------------------------------------------------------------------------------ +#--------------------------------------------------------------------------- +# EMPTY_MULTITYPE_TABLE +#--------------------------------------------------------------------------- -DROP TABLE IF EXISTS empty_multitype_table; -CREATE TABLE empty_multitype_table +DROP TABLE IF EXISTS EMPTY_MULTITYPE_TABLE; +CREATE TABLE EMPTY_MULTITYPE_TABLE (VARCHAR_COL VARCHAR(32), NUMERIC_COL NUMERIC(38, 0), - TIMESTAMP_COL TIMESTAMP, + TIMESTAMP_COL TIMESTAMP NULL, VARBINARY_COL VARBINARY(254)) TYPE = InnoDB; Modified: trunk/dbunit/src/test/org/dbunit/DatabaseEnvironment.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/DatabaseEnvironment.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/DatabaseEnvironment.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -70,6 +70,10 @@ { INSTANCE = new PostgresqlEnvironment(profile); } + else if (profileName.equals("mysql")) + { + INSTANCE = new MySqlEnvironment(profile); + } else if (profileName.equals("derby")) { INSTANCE = new DerbyEnvironment(profile); Added: trunk/dbunit/src/test/org/dbunit/MySqlEnvironment.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/MySqlEnvironment.java (rev 0) +++ trunk/dbunit/src/test/org/dbunit/MySqlEnvironment.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -0,0 +1,44 @@ +/* + * + * The DbUnit Database Testing Framework + * Copyright (C)2002-2009, DbUnit.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +package org.dbunit; + +import org.dbunit.database.DatabaseConfig; +import org.dbunit.ext.mysql.MySqlDataTypeFactory; + +/** + * @author John Hurst (adapted from Manuel Laflamme: OracleEnvironment) + * @version $Revision$ + * @since DbUnit 2.4.7 + */ +public class MySqlEnvironment extends DatabaseEnvironment +{ + public MySqlEnvironment(DatabaseProfile profile) throws Exception + { + super(profile); + } + + protected void setupDatabaseConfig(DatabaseConfig config) + { + config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, new MySqlDataTypeFactory()); + } + +} \ No newline at end of file Property changes on: trunk/dbunit/src/test/org/dbunit/MySqlEnvironment.java ___________________________________________________________________ Added: svn:keywords + Id Modified: trunk/dbunit/src/test/org/dbunit/ant/DbUnitTaskTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/ant/DbUnitTaskTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/ant/DbUnitTaskTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -62,12 +62,12 @@ public class DbUnitTaskTest extends BuildFileTest { static protected Class classUnderTest = DbUnitTaskTest.class; - + private static final String BUILD_FILE_DIR = "src/xml"; private static final String OUTPUT_DIR = "target/xml"; - + private File outputDir; - + public DbUnitTaskTest(String name) { super(name); @@ -81,15 +81,15 @@ String filePath = BUILD_FILE_DIR + "/antTestBuildFile.xml"; assertTrue("Buildfile not found", new File(filePath).isFile()); configureProject(filePath); - + outputDir = new File(getProjectDir(), OUTPUT_DIR); outputDir.mkdirs(); } - protected void tearDown() throws Exception + protected void tearDown() throws Exception { super.tearDown(); - + outputDir = new File(getProjectDir(), OUTPUT_DIR); FileHelper.deleteDirectory(outputDir); } @@ -209,7 +209,7 @@ + "(indicating a full dataset), but was: " + tables, tables.size() == 0); } - + public void testExportPartial() { String targetName = "test-export-partial"; @@ -230,7 +230,7 @@ Export export = (Export)getFirstStepFromTarget(targetName); assertEquals("format", "flat", export.getFormat()); } - + public void testExportFlatWithDocytpe() { String targetName = "test-export-format-flat-with-doctype"; @@ -246,7 +246,7 @@ assertEquals("format", "flat", export.getFormat()); assertEquals("encoding", "ISO-8859-1", export.getEncoding()); } - + public void testExportXml() { String targetName = "test-export-format-xml"; @@ -261,9 +261,9 @@ Export export = (Export)getFirstStepFromTarget(targetName); assertTrue("Should have been a csv format, " + "but was: " + export.getFormat(), - export.getFormat().equalsIgnoreCase("csv")); + export.getFormat().equalsIgnoreCase("csv")); } - + public void testExportDtd() { String targetName = "test-export-format-dtd"; @@ -287,7 +287,7 @@ assertTrue("Should have been an xml format, " + "but was: " + export.getFormat(), export.getFormat().equalsIgnoreCase("xml")); - + // Test if the correct dataset is created for ordered export DbUnitTask task = getFirstTargetTask(targetName); IDatabaseConnection connection = task.createConnection(); @@ -307,77 +307,77 @@ Query testTable = (Query)queries.get(0); assertEquals("name", "TEST_TABLE", testTable.getName()); - assertEquals("sql", "SELECT * FROM test_table ORDER BY column0 DESC", testTable.getSql()); + assertEquals("sql", "SELECT * FROM TEST_TABLE ORDER BY column0 DESC", testTable.getSql()); Query pkTable = (Query)queries.get(1); assertEquals("name", "PK_TABLE", pkTable.getName()); - assertEquals("sql", "SELECT * FROM pk_table", pkTable.getSql()); + assertEquals("sql", "SELECT * FROM PK_TABLE", pkTable.getSql()); } public void testExportWithQuerySet() { String targetName = "test-export-with-queryset"; Export export = (Export)getFirstStepFromTarget(targetName); assertEquals("format", "csv", export.getFormat()); - + List queries = export.getTables(); - + assertEquals("query count", 1, getQueryCount(queries)); - assertEquals("table count", 1, getTableCount(queries)); + assertEquals("table count", 1, getTableCount(queries)); assertEquals("queryset count", 2, getQuerySetCount(queries)); - + Query secondTable = (Query)queries.get(0); assertEquals("name", "SECOND_TABLE", secondTable.getName()); assertEquals("sql", "SELECT * FROM SECOND_TABLE", secondTable.getSql()); - + QuerySet queryset1 = (QuerySet)queries.get(1); - + Query testTable = (Query)queryset1.getQueries().get(0); - + assertEquals("name", "TEST_TABLE", testTable.getName()); - + QuerySet queryset2 = (QuerySet)queries.get(2); - + Query pkTable = (Query)queryset2.getQueries().get(0); Query testTable2 = (Query)queryset2.getQueries().get(1); - + assertEquals("name", "PK_TABLE", pkTable.getName()); assertEquals("name", "TEST_TABLE", testTable2.getName()); - + Table emptyTable = (Table)queries.get(3); - + assertEquals("name", "EMPTY_TABLE", emptyTable.getName()); } - + public void testWithBadQuerySet() { expectBuildException("invalid-queryset", "Cannot specify 'id' and 'refid' attributes together in queryset."); } - + public void testWithReferenceQuerySet() { String targetName = "test-queryset-reference"; - + Export export = (Export)getFirstStepFromTarget(targetName); - + List tables = export.getTables(); - + assertEquals("total count", 1, tables.size()); - + QuerySet queryset = (QuerySet)tables.get(0); Query testTable = (Query)queryset.getQueries().get(0); Query secondTable = (Query)queryset.getQueries().get(1); - + assertEquals("name", "TEST_TABLE", testTable.getName()); - assertEquals("sql", "SELECT * FROM TEST_TABLE WHERE COLUMN0 = 'row0 col0'", + assertEquals("sql", "SELECT * FROM TEST_TABLE WHERE COLUMN0 = 'row0 col0'", testTable.getSql()); - - assertEquals("name", "SECOND_TABLE", secondTable.getName()); - assertEquals("sql", + + assertEquals("name", "SECOND_TABLE", secondTable.getName()); + assertEquals("sql", "SELECT B.* FROM TEST_TABLE A, SECOND_TABLE B " + "WHERE A.COLUMN0 = 'row0 col0' AND B.COLUMN0 = A.COLUMN0", secondTable.getSql()); - + } - + public void testExportQueryMixed() { String targetName = "test-export-query-mixed"; Export export = (Export)getFirstStepFromTarget(targetName); @@ -394,14 +394,14 @@ Query pkTable = (Query)tables.get(1); assertEquals("name", "PK_TABLE", pkTable.getName()); } - + /** * Tests the exception that is thrown when the compare fails because * the source format was different from the previous "export" task's write format. */ public void testExportAndCompareFormatMismatch() { String targetName = "test-export-and-compare-format-mismatch"; - + try { getFirstTargetTask(targetName); fail("Should not be able to invoke ant task where the expected table was not found because it was tried to read in the wrong format."); @@ -418,7 +418,7 @@ assertEquals("TEST_TABLE", nstException.getMessage()); } } - + public void testDataTypeFactory() throws Exception { String targetName = "test-datatypefactory"; @@ -444,16 +444,16 @@ String expectedPattern = "[?]"; assertEquals("factory", expectedPattern, actualPattern); } - + public void testDataTypeFactoryViaGenericConfig() throws Exception { String targetName = "test-datatypefactory-via-generic-config"; DbUnitTask task = getFirstTargetTask(targetName); IDatabaseConnection connection = task.createConnection(); - + DatabaseConfig config =connection.getConfig(); - + IDataTypeFactory factory = (IDataTypeFactory)config.getProperty( DatabaseConfig.PROPERTY_DATATYPE_FACTORY); Class expectedClass = OracleDataTypeFactory.class; @@ -461,13 +461,13 @@ String[] actualTableType = (String[])config.getProperty(DatabaseConfig.PROPERTY_TABLE_TYPE); ArrayAssert.assertEquals("tableType", new String[]{"TABLE", "SYNONYM"}, actualTableType); - assertTrue("batched statements feature should be true", + assertTrue("batched statements feature should be true", connection.getConfig().getFeature(DatabaseConfig.FEATURE_BATCHED_STATEMENTS)); - assertTrue("qualified tablenames feature should be true", + assertTrue("qualified tablenames feature should be true", connection.getConfig().getFeature(DatabaseConfig.FEATURE_CASE_SENSITIVE_TABLE_NAMES)); } - - + + public void testClasspath() throws Exception { String targetName = "test-classpath"; @@ -480,7 +480,7 @@ catch (BuildException e) { // Verify exception type - assertEquals("nested exception type", SQLException.class, e.getException().getClass()); + assertTrue("nested exxception type", e.getException() instanceof SQLException); } } @@ -576,7 +576,7 @@ return count; } - + protected DbUnitTaskStep getFirstStepFromTarget(String targetName) { return getStepFromTarget(targetName, 0); @@ -598,16 +598,16 @@ Hashtable targets = project.getTargets(); executeTarget(targetName); Target target = (Target)targets.get(targetName); - + DbUnitTask task = null; - + Object[] tasks = target.getTasks(); for(int i = 0; i < tasks.length; i++) { if(tasks[i] instanceof DbUnitTask) { task = (DbUnitTask)tasks[i]; } } - + return task; } Modified: trunk/dbunit/src/test/org/dbunit/database/AbstractDatabaseConnectionTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/database/AbstractDatabaseConnectionTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/database/AbstractDatabaseConnectionTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -54,13 +54,13 @@ public final void testGetRowCount() throws Exception { - assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("empty_table", null)); - assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("empty_table")); + assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("EMPTY_TABLE", null)); + assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("EMPTY_TABLE")); - assertEquals("TEST_TABLE", 6, _connection.getRowCount("test_table", null)); - assertEquals("TEST_TABLE", 6, _connection.getRowCount("test_table")); + assertEquals("TEST_TABLE", 6, _connection.getRowCount("TEST_TABLE", null)); + assertEquals("TEST_TABLE", 6, _connection.getRowCount("TEST_TABLE")); - assertEquals("PK_TABLE", 1, _connection.getRowCount("pk_table", "where PK0 = 0")); + assertEquals("PK_TABLE", 1, _connection.getRowCount("PK_TABLE", "where PK0 = 0")); } public final void testGetRowCount_NonexistingSchema() throws Exception @@ -75,7 +75,7 @@ assertEquals(convertString(nonexistingSchema), dbConnection.getSchema()); try { - dbConnection.getRowCount("test_table"); + dbConnection.getRowCount("TEST_TABLE"); fail("Should not be able to retrieve row count for non-existing schema " + nonexistingSchema); } catch(SQLException expected) @@ -98,7 +98,7 @@ IDatabaseConnection dbConnection = dbTester.getConnection(); assertEquals(null, dbConnection.getSchema()); - assertEquals("TEST_TABLE", 6, _connection.getRowCount("test_table", null)); + assertEquals("TEST_TABLE", 6, _connection.getRowCount("TEST_TABLE", null)); } finally { // Reset the testers schema for subsequent tests (environment.dbTester is a singleton) Modified: trunk/dbunit/src/test/org/dbunit/database/AbstractDatabaseTesterConnectionTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/database/AbstractDatabaseTesterConnectionTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/database/AbstractDatabaseTesterConnectionTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -35,12 +35,12 @@ public final void testGetRowCount() throws Exception { - assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("empty_table", null)); - assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("empty_table")); + assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("EMPTY_TABLE", null)); + assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("EMPTY_TABLE")); - assertEquals("TEST_TABLE", 6, _connection.getRowCount("test_table", null)); - assertEquals("TEST_TABLE", 6, _connection.getRowCount("test_table")); + assertEquals("TEST_TABLE", 6, _connection.getRowCount("TEST_TABLE", null)); + assertEquals("TEST_TABLE", 6, _connection.getRowCount("TEST_TABLE")); - assertEquals("PK_TABLE", 1, _connection.getRowCount("pk_table", "where PK0 = 0")); + assertEquals("PK_TABLE", 1, _connection.getRowCount("PK_TABLE", "where PK0 = 0")); } } Modified: trunk/dbunit/src/test/org/dbunit/database/CachedResultSetTableTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/database/CachedResultSetTableTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/database/CachedResultSetTableTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -44,7 +44,7 @@ DatabaseOperation.CLEAN_INSERT.execute(connection, env.getInitDataSet()); - String selectStatement = "select * from test_table order by COLUMN0"; + String selectStatement = "select * from TEST_TABLE order by COLUMN0"; return new CachedResultSetTable( new ForwardOnlyResultSetTable("TEST_TABLE", selectStatement, connection)); } Modified: trunk/dbunit/src/test/org/dbunit/database/DatabaseTableMetaDataTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/database/DatabaseTableMetaDataTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/database/DatabaseTableMetaDataTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -249,7 +249,11 @@ try { // Use the "EMPTY_MULTITYPE_TABLE" because it has an "I" in the name. // Use as input a completely lower-case string so that the internal "toUpperCase()" has effect - String tableName = "empty_multitype_table"; + // 2009-11-06 TODO John Hurst: not working in original form with MySQL. + // Is it because "internal toUpperCase() mentioned above is actually not being called? + // Investigate further. +// String tableName = "empty_multitype_table"; + String tableName = "EMPTY_MULTITYPE_TABLE"; IDataSet dataSet = this._connection.createDataSet(); ITable table = dataSet.getTable(tableName); Modified: trunk/dbunit/src/test/org/dbunit/database/ForwardOnlyResultSetTableTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/database/ForwardOnlyResultSetTableTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/database/ForwardOnlyResultSetTableTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -47,7 +47,7 @@ DatabaseOperation.CLEAN_INSERT.execute(connection, env.getInitDataSet()); - String selectStatement = "select * from test_table order by COLUMN0"; + String selectStatement = "select * from TEST_TABLE order by COLUMN0"; return new ForwardOnlyResultSetTable("TEST_TABLE", selectStatement, connection); } Modified: trunk/dbunit/src/test/org/dbunit/database/QueryDataSetTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/database/QueryDataSetTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/database/QueryDataSetTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -65,11 +65,6 @@ //////////////////////////////////////////////////////////////////////////// // AbstractDataSetTest class - protected String[] getExpectedNames() throws Exception - { - return getExpectedLowerNames(); - } - protected IDataSet createDataSet() throws Exception { String[] names = getExpectedNames(); @@ -134,7 +129,7 @@ return dataSet; } - + //////////////////////////////////////////////////////////////////////////// // Test methods @@ -142,7 +137,7 @@ { QueryDataSet ptds = new QueryDataSet(_connection); - ptds.addTable("PK_TABLE", "SELECT PK0, PK1 FROM pk_table where PK0 = 0"); + ptds.addTable("PK_TABLE", "SELECT PK0, PK1 FROM PK_TABLE where PK0 = 0"); ITable table = ptds.getTable("PK_TABLE"); assertEquals("", "0", table.getValue(0, "PK0").toString()); @@ -154,7 +149,7 @@ { QueryDataSet ptds = new QueryDataSet(_connection); - ptds.addTable("PK_TABLE", "SELECT * FROM pk_table where PK0 = 0"); + ptds.addTable("PK_TABLE", "SELECT * FROM PK_TABLE where PK0 = 0"); ITable table = ptds.getTable("PK_TABLE"); assertEquals("", "0", table.getValue(0, "PK0").toString()); @@ -166,7 +161,7 @@ { QueryDataSet ptds = new QueryDataSet(_connection); - ptds.addTable("PK_TABLE", "SELECT PK0 FROM pk_table"); + ptds.addTable("PK_TABLE", "SELECT PK0 FROM PK_TABLE"); ITable table = ptds.getTable("PK_TABLE"); assertEquals("", "0", table.getValue(0, "PK0").toString()); @@ -178,7 +173,7 @@ { QueryDataSet ptds = new QueryDataSet(_connection); - ptds.addTable("PK_TABLE", "SELECT PK0 FROM pk_table"); + ptds.addTable("PK_TABLE", "SELECT PK0 FROM PK_TABLE"); ITable table = ptds.getTable("PK_TABLE"); assertEquals("", "0", table.getValue(0, "PK0").toString()); @@ -200,7 +195,7 @@ QueryDataSet ptds = new QueryDataSet(_connection); ptds.addTable("SECOND_TABLE", - "SELECT * FROM second_table where COLUMN0='row 0 col 0'"); + "SELECT * FROM SECOND_TABLE where COLUMN0='row 0 col 0'"); ITable table = ptds.getTable("SECOND_TABLE"); assertEquals("", "row 0 col 0", table.getValue(0, "COLUMN0").toString()); @@ -214,7 +209,7 @@ QueryDataSet ptds = new QueryDataSet(_connection); ptds.addTable("SECOND_TABLE", - "SELECT COLUMN0, COLUMN3 FROM second_table where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); + "SELECT COLUMN0, COLUMN3 FROM SECOND_TABLE where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); ITable table = ptds.getTable("SECOND_TABLE"); assertEquals("", "row 0 col 0", table.getValue(0, "COLUMN0").toString()); @@ -229,9 +224,9 @@ QueryDataSet ptds = new QueryDataSet(_connection); ptds.addTable("SECOND_TABLE", - "SELECT * from second_table where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); + "SELECT * from SECOND_TABLE where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); ptds.addTable("PK_TABLE", - "SELECT * FROM pk_table where PK0 = 0"); + "SELECT * FROM PK_TABLE where PK0 = 0"); table = ptds.getTable("SECOND_TABLE"); assertEquals("", "row 0 col 0", table.getValue(0, "COLUMN0").toString()); @@ -248,7 +243,7 @@ { QueryDataSet ptds = new QueryDataSet(_connection); ptds.addTable("SECOND_TABLE", - "SELECT * from second_table where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); + "SELECT * from SECOND_TABLE where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); ptds.addTable("PK_TABLE", null); } } Modified: trunk/dbunit/src/test/org/dbunit/database/ScrollableResultSetTableTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/database/ScrollableResultSetTableTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/database/ScrollableResultSetTableTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -51,7 +51,7 @@ DatabaseOperation.CLEAN_INSERT.execute(connection, env.getInitDataSet()); - String selectStatement = "select * from test_table order by COLUMN0"; + String selectStatement = "select * from TEST_TABLE order by COLUMN0"; return new ScrollableResultSetTable("TEST_TABLE", selectStatement, connection); } Modified: trunk/dbunit/src/test/org/dbunit/operation/RefreshOperationTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/operation/RefreshOperationTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/operation/RefreshOperationTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -108,7 +108,7 @@ public void testExecuteAndNoPrimaryKeys() throws Exception { - String tableName = "test_table"; + String tableName = "TEST_TABLE"; Reader reader = new FileReader("src/xml/refreshOperationNoPKTest.xml"); IDataSet dataSet = new FlatXmlDataSetBuilder().build(reader); Modified: trunk/dbunit/src/test/org/dbunit/operation/UpdateOperationTest.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/operation/UpdateOperationTest.java 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/test/org/dbunit/operation/UpdateOperationTest.java 2009-11-06 02:00:47 UTC (rev 1097) @@ -337,7 +337,7 @@ public void testExecuteAndNoPrimaryKeys() throws Exception { - String tableName = "test_table"; + String tableName = "TEST_TABLE"; Reader reader = new FileReader("src/xml/updateOperationNoPKTest.xml"); IDataSet dataSet = new FlatXmlDataSetBuilder().build(reader); Modified: trunk/dbunit/src/xml/antTestBuildFile.xml =================================================================== --- trunk/dbunit/src/xml/antTestBuildFile.xml 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/dbunit/src/xml/antTestBuildFile.xml 2009-11-06 02:00:47 UTC (rev 1097) @@ -383,8 +383,8 @@ userid="${dbunit.profile.user}" password="${dbunit.profile.password}"> <export dest="${exportDataSet}"> - <query name="TEST_TABLE" sql="SELECT * FROM test_table ORDER BY column0 DESC"/> - <query name="PK_TABLE" sql="SELECT * FROM pk_table"/> + <query name="TEST_TABLE" sql="SELECT * FROM TEST_TABLE ORDER BY column0 DESC"/> + <query name="PK_TABLE" sql="SELECT * FROM PK_TABLE"/> </export> <compare src="${exportDataSet}" sort="true"/> </dbunit> @@ -398,10 +398,10 @@ password="${dbunit.profile.password}"> <export dest="${exportDataSet}"> <table name="TEST_TABLE" /> - <query name="PK_TABLE" sql="SELECT * FROM pk_table WHERE normal1='0 wor'"/> + <query name="PK_TABLE" sql="SELECT * FROM PK_TABLE WHERE normal1='0 wor'"/> </export> <compare src="${exportDataSet}"> - <query name="PK_TABLE" sql="SELECT * FROM pk_table WHERE normal1='0 wor'"/> + <query name="PK_TABLE" sql="SELECT * FROM PK_TABLE WHERE normal1='0 wor'"/> <table name="TEST_TABLE" /> </compare> </dbunit> Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2009-11-06 00:51:40 UTC (rev 1096) +++ trunk/pom.xml 2009-11-06 02:00:47 UTC (rev 1097) @@ -9,13 +9,11 @@ <url>http://dbunit.sourceforge.net</url> <inceptionYear>2002</inceptionYear> <description> - DbUnit is a JUnit extension targeted for database-driven projects that, among other things, puts your database into a known state between test runs. + DbUnit is a JUnit extension targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage. </description> - <modules> <module>dbunit</module> <module>dbunit-maven-plugin</module> </modules> - </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jb...@us...> - 2009-11-06 00:51:48
|
Revision: 1096 http://dbunit.svn.sourceforge.net/dbunit/?rev=1096&view=rev Author: jbhurst Date: 2009-11-06 00:51:40 +0000 (Fri, 06 Nov 2009) Log Message: ----------- [2875235] - fixed typo in javadoc. Modified Paths: -------------- trunk/dbunit/src/test/org/dbunit/PostgresqlEnvironment.java Modified: trunk/dbunit/src/test/org/dbunit/PostgresqlEnvironment.java =================================================================== --- trunk/dbunit/src/test/org/dbunit/PostgresqlEnvironment.java 2009-11-05 22:49:34 UTC (rev 1095) +++ trunk/dbunit/src/test/org/dbunit/PostgresqlEnvironment.java 2009-11-06 00:51:40 UTC (rev 1096) @@ -25,7 +25,7 @@ import org.dbunit.ext.postgresql.PostgresqlDataTypeFactory; /** - * @author John Hurst (adpated from Manuel Laflamme: OracleEnvironment) + * @author John Hurst (adapted from Manuel Laflamme: OracleEnvironment) * @version $Revision$ * @since DbUnit 2.4.7 */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |