Update of /cvsroot/dbunit/dbunit/docs
In directory usw-pr-cvs1:/tmp/cvs-serv1854/dbunit/docs
Modified Files:
anttask.html bestpractices.html changes.html download.html
faq.html index.html resources.html
Log Message:
Ready for release of version 1.4
Index: anttask.html
===================================================================
RCS file: /cvsroot/dbunit/dbunit/docs/anttask.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** anttask.html 16 Jun 2002 20:35:02 -0000 1.1
--- anttask.html 17 Jul 2002 01:55:20 -0000 1.2
***************
*** 84,87 ****
--- 84,105 ----
<td>Yes</td>
</tr>
+ <tr>
+ <td>schema </td>
+ <td>Database schema</td>
+ <td>No</td>
+ </tr>
+ <tr>
+ <td>useQualifiedTableNames</td>
+ <td>Set System.property dbunit.qualified.table.names <br>
+ equal to supplied boolean value</td>
+ <td>No</td>
+ </tr>
+ <tr>
+ <td>supportBatchStatement</td>
+ <td>Set System.property<br>
+ dbunit.support.batch.statement<br>
+ equal to supplied boolean value</td>
+ <td> No</td>
+ </tr>
</table>
<h4>Parameters specified as nested elements</h4>
***************
*** 114,121 ****
</tr>
<tr>
! <td>flat</td>
! <td>If true, use <a class="code">FlatXmlDataSet</a> type in the
! supplied src file. Otherwise use <a class="code">XmlDataSet</a>.
! Defaults to <a class="code">true</a></td>
<td>
<p>No</p>
--- 132,138 ----
</tr>
<tr>
! <td>format</td>
! <td>Format type of supplied source file. Possible values are "flat"
! or "xml". Defaults to <a class="code">"flat"</a></td>
<td>
<p>No</p>
***************
*** 125,128 ****
--- 142,146 ----
</td>
</tr>
+ <!--
<tr>
<td>composite</td>
***************
*** 164,167 ****
--- 182,186 ----
</td>
</tr>
+ -->
<tr>
<td>export</td>
***************
*** 186,193 ****
</tr>
<tr>
! <td>flat</td>
! <td>If true, use <a class="code">FlatXmlDataSet</a> type in the
! supplied src file. Otherwise use <a class="code">XmlDataSet</a>.
! Defaults to <a class="code">true</a></td>
<td>
<p>No</p>
--- 205,212 ----
</tr>
<tr>
! <td>format</td>
! <td>Format type of supplied destination file. Possible values
! are "flat", "xml" or "dtd". Defaults
! to <a class="code">"flat"</a></td>
<td>
<p>No</p>
***************
*** 221,229 ****
</table>
<h3>Examples</h3>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="dbunit"<br> password="dbunit"><br> <operation type="UPDATE" src="updateFile.xml"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and executes the UPDATE operation contained within the FlatXmlDataSet
file updateFile.xml.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="dbunit"<br> password="dbunit"><br> <operation type="INSERT" src="insertFile.xml"/><br> <operation type="UPDATE" src="updateFile.xml"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver.
It then executes the INSERT operation contained within the FlatXmlDataSet
--- 240,248 ----
</table>
<h3>Examples</h3>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <operation type="UPDATE" src="updateFile.xml"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and executes the UPDATE operation contained within the FlatXmlDataSet
file updateFile.xml.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <operation type="INSERT" src="insertFile.xml"/><br> <operation type="UPDATE" src="updateFile.xml"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver.
It then executes the INSERT operation contained within the FlatXmlDataSet
***************
*** 231,258 ****
followed by the execution of the UPDATE operation contained within the
FlatXmlDataSet file updateFile.xml.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="dbunit"<br> password="dbunit"><br> <operation type="UPDATE" src="updateFile.xml" flat="false"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and executes the UPDATE operation contained within the XmlDataSet file
updateFile.xml.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="dbunit"<br> password="dbunit"><br> <composite src="compositeFile.xml"><br> <operation type="DELETE"/><br> <operation type="INSERT"/><br> </composite><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver.
It then executes the CompositeOperation, DELETE and then UPDATE, contained
within the FlatXmlDataSet file updateFile.xml.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="dbunit"<br> password="dbunit"><br> <composite src="compositeFile.xml" flat="false"><br> <operation type="INSERT"/><br> <operation type="UPDATE"/><br> </composite><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver.
It then executes the CompositeOperation, DELETE and then UPDATE, contained
within the XmlDataSet file updateFile.xml.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="dbunit"<br> password="dbunit"><br> <export dest="exportFile.xml"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and exports the database to the given destination file as a FlatXmlDataSet.
</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="dbunit"<br> password="dbunit"><br> <export dest="exportNonFlatFile.xml" flat="false"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and exports the database to the given destination file as an XmlDataSet.
</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="dbunit"<br> password="dbunit"><br> <export dest="exportFile.xml"><br> <table name="FOO"/><br> <table name="BAR"/><br> </export><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and exports the contents of the provided tables to the given destination
! file as an XmlDataSet. <br>
</p>
<!-- #EndEditable -->
--- 250,283 ----
followed by the execution of the UPDATE operation contained within the
FlatXmlDataSet file updateFile.xml.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <operation type="UPDATE" src="updateFile.xml" flat="false"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and executes the UPDATE operation contained within the XmlDataSet file
updateFile.xml.</p>
! <!--
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <composite src="compositeFile.xml"><br> <operation type="DELETE"/><br> <operation type="INSERT"/><br> </composite><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver.
It then executes the CompositeOperation, DELETE and then UPDATE, contained
within the FlatXmlDataSet file updateFile.xml.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <composite src="compositeFile.xml" flat="false"><br> <operation type="INSERT"/><br> <operation type="UPDATE"/><br> </composite><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver.
It then executes the CompositeOperation, DELETE and then UPDATE, contained
within the XmlDataSet file updateFile.xml.</p>
! -->
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <export dest="exportFile.xml"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and exports the database to the given destination file as a FlatXmlDataSet.
</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <export dest="exportNonFlatFile.xml" format="xml"/><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and exports the database to the given destination file as an XmlDataSet.
</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <export dest="export.dtd" format="dtd"/><br> </dbunit></pre>
! <p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
! and <br>
! exports the document type definition (dtd) describing the flat xml format.</p>
! <pre> <dbunit driver="org.hsqldb.jdbcDriver"<br> url="jdbc:hsqldb:."<br> userid="sa"<br> password=""><br> <export dest="exportFile.xml"><br> <table name="FOO"/><br> <table name="BAR"/><br> </export><br> </dbunit></pre>
<p> Connects to the database given in url as the dbunit user using the org.hsqldb.jdbcDriver
and exports the contents of the provided tables to the given destination
! file as an FlatXmlDataSet. <br>
</p>
<!-- #EndEditable -->
Index: bestpractices.html
===================================================================
RCS file: /cvsroot/dbunit/dbunit/docs/bestpractices.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** bestpractices.html 16 Jun 2002 19:21:09 -0000 1.15
--- bestpractices.html 17 Jul 2002 01:55:20 -0000 1.16
***************
*** 99,106 ****
and tearDown(). Override the closeConnection() method with an empty body
to modify this behavior. </p>
- <p>You may be interested to look at the Daedalos JUnit Extensions (see <a href="resources.html">Resources</a>).
- I haven't tried it myself but this seems to be an interesting way to reuse
- the same connection across multiple tests.<br>
- </p>
<h4>In-container with Cactus or JUnitEE</h4>
If you use the in-container strategy you should use a DatabaseDataSourceConnection
--- 99,102 ----
Index: changes.html
===================================================================
RCS file: /cvsroot/dbunit/dbunit/docs/changes.html,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** changes.html 16 Jun 2002 19:21:09 -0000 1.24
--- changes.html 17 Jul 2002 01:55:21 -0000 1.25
***************
*** 50,53 ****
--- 50,54 ----
package because Visual Age for Java is not able to handle classes located
in the default package.</li>
+ <li>Added system properties documentation.</li>
<li>New features:</li>
<ul>
***************
*** 63,67 ****
<li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=554249&group_id=47439&atid=449494">554249</a>
- None column values.</li>
! <li>Added support for BLOB and CLOB data types.</li>
</ul>
<li>Multiple bugfixes:</li>
--- 64,70 ----
<li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=554249&group_id=47439&atid=449494">554249</a>
- None column values.</li>
! <li><strong><em>Ant Task</em></strong> contributed by Timothy Ruppert
! and Ben Cox.</li>
! <li>Support for BLOB and CLOB data types.</li>
</ul>
<li>Multiple bugfixes:</li>
***************
*** 75,78 ****
--- 78,83 ----
<li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=547200&group_id=47439&atid=449491">547200</a>
- PreparedStatement.clearParameters() problem with oracle 8i.</li>
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=559693&group_id=47439&atid=449491">559693</a>
+ - Delete row order problem.</li>
<li>DeleteAllOperation crash with empty dataset.</li>
</ul>
Index: download.html
===================================================================
RCS file: /cvsroot/dbunit/dbunit/docs/download.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** download.html 16 Jun 2002 19:21:09 -0000 1.18
--- download.html 17 Jul 2002 01:55:21 -0000 1.19
***************
*** 45,52 ****
<td class="body" valign="top"> <!-- #BeginEditable "body" -->
<h2>Download</h2>
! <p>The current Dbunit release is version 1.3. The distribution archive contains
the compiled classes, the java code and the java API documentation.</p>
! <p><a href="https://sourceforge.net/project/showfiles.php?group_id=47439&release_id=82941">Download
! version 1.3</a></p>
<p>If your are not reading this page online, please visit the <a href="http://www.dbunit.org">online
version</a> of this site since a more recent version of Dbunit might be
--- 45,52 ----
<td class="body" valign="top"> <!-- #BeginEditable "body" -->
<h2>Download</h2>
! <p>The current Dbunit release is version 1.4. The distribution archive contains
the compiled classes, the java code and the java API documentation.</p>
! <p><a href="http://sourceforge.net/project/showfiles.php?group_id=47439&release_id=100096">Download
! version 1.4</a></p>
<p>If your are not reading this page online, please visit the <a href="http://www.dbunit.org">online
version</a> of this site since a more recent version of Dbunit might be
Index: faq.html
===================================================================
RCS file: /cvsroot/dbunit/dbunit/docs/faq.html,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** faq.html 16 Jun 2002 19:21:09 -0000 1.17
--- faq.html 17 Jul 2002 01:55:21 -0000 1.18
***************
*** 53,56 ****
--- 53,57 ----
<li><a><a href="UnsatisfiedLinkError">Why I get an "UnsatisfiedLinkError"
with the DB2 driver?</a></a></li>
+ <li><a href="#AmbiguousTableNameException">Why I get a AmbiguousTableNameException?</a></li>
</ul>
<hr>
***************
*** 92,96 ****
from the DB2 JDBC 1.0 driver.</p>
<p>The steps for installing the DB2 JDBC 2.0 driver are covered in the DB2
! documentation.<br>
</p>
<p></p>
--- 93,107 ----
from the DB2 JDBC 1.0 driver.</p>
<p>The steps for installing the DB2 JDBC 2.0 driver are covered in the DB2
! documentation.</p>
! <h3><a name="AmbiguousTableNameException">Why I get a AmbiguousTableNameException?</a></h3>
! <p>This situation occurs when no schema is specified and that DbUnit detect
! that it is getting columns information from multiple tables having the
! same name and located in different schemas.</p>
! <p>You can solve this problem in three different ways:<br>
! 1. Provide the schema name when creating the database connection.<br>
! 2. Ensure that the connection is restricted to access only one schema.<br>
! 3. Use fully qualified table names as specified <a href="howto.html#multipleschema">here</a>.<br>
! </p>
! <p><br>
</p>
<p></p>
Index: index.html
===================================================================
RCS file: /cvsroot/dbunit/dbunit/docs/index.html,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** index.html 16 Jun 2002 19:21:09 -0000 1.21
--- index.html 17 Jul 2002 01:55:21 -0000 1.22
***************
*** 53,60 ****
Something worth noting: Dbunit is using itself in its own test suite!
</p>
! <a name="intro"><h2>News</h2>
</a>
<ul>
! <!--<li>2002-??-?? - The java API documentation is now available <a href="api/index.html">online</a>.</li>-->
<li>2002-04-04 - Version 1.3 released. See <a href="changes.html#1.3">changes</a>.</li>
<li>2002-04-04 - New website design done by <a href="http://www.silphid.com/">Silphid
--- 53,64 ----
Something worth noting: Dbunit is using itself in its own test suite!
</p>
! <a name="intro">
! <h2>News</h2>
</a>
<ul>
! <li>2002-07-17 - The java API documentation is now available <a href="api/index.html">online</a>.</li>
! <li>2002-07-17 - Version 1.4 released. See <a href="changes.html#1.4">changes</a>.</li>
! <li>2002-05-10 - Timothy Ruppert and Ben Cox joined the DbUnit developement
! team.</li>
<li>2002-04-04 - Version 1.3 released. See <a href="changes.html#1.3">changes</a>.</li>
<li>2002-04-04 - New website design done by <a href="http://www.silphid.com/">Silphid
Index: resources.html
===================================================================
RCS file: /cvsroot/dbunit/dbunit/docs/resources.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** resources.html 16 Jun 2002 19:21:09 -0000 1.13
--- resources.html 17 Jul 2002 01:55:21 -0000 1.14
***************
*** 57,68 ****
code</a><br>
Richard Dallaway notes about database unit testing.</p>
- <p><a href="http://www.daedalos.com/EN/djux">Daedalos JUnit Extensions</a><br>
- Daedalos JUnitExtensions make it possible to define test resources as
- known from the Smalltalk SUnit. Unit tests are speeded up by using test
- resources, because time-consuming initializations are only done once and
- remain active over a series of tests. As an example, a database connection
- is opened before executing the first unit test and can be accessed during
- the whole testing circle. It isn't necessary to re-open the database connection
- before an unit test is executed. </p>
<p><a href="http://mockobjects.sourceforge.net/papers/jdbc_testfirst.html">Developing
JDBC applications test-first</a><br>
--- 57,60 ----
|