<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/sqlunit/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/sqlunit/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 27 Jun 2006 14:20:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sqlunit/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>DTD Correction of UDTs</title><link>https://sourceforge.net/p/sqlunit/patches/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;sqlunit.dtd line 88 needs the following change to&lt;br /&gt;
support handling UDT outparams as &amp;lt;struct&amp;gt; elements:&lt;/p&gt;
&lt;p&gt;&amp;lt;!ELEMENT connection&lt;br /&gt;
(((driver,url,user,password,(jarfile-url)?)|(datasource,jndi)?))&amp;gt;&lt;/p&gt;
&lt;p&gt;should be:&lt;/p&gt;
&lt;p&gt;&amp;lt;!ELEMENT connection&lt;br /&gt;
(((driver,url,user,password,(jarfile-url)?,(typemap)?)|(datasource,jndi)?))&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Douglas Kvidera</dc:creator><pubDate>Tue, 27 Jun 2006 14:20:30 -0000</pubDate><guid>https://sourceforge.net4010417dc478bcc7ccde13d748866c8f4bdd21cf</guid></item><item><title>Adds support for UDTs as STRUCTs</title><link>https://sourceforge.net/p/sqlunit/patches/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Supports outparams as nested UDTs where fields are&lt;br /&gt;
JavaBean properties (less className and SQLTypeName). &lt;br /&gt;
Fields are sorted by name, case-insensitive.&lt;/p&gt;
&lt;p&gt;Example:&lt;br /&gt;
&amp;lt;test name="My Test"&amp;gt;&lt;br /&gt;
&amp;lt;call&amp;gt;&lt;br /&gt;
&amp;lt;stmt&amp;gt;begin ? := myFunct(); end;&amp;lt;/stmt&amp;gt;&lt;br /&gt;
&amp;lt;param id="1" type="STRUCT" typename="MY_OBJTYP"&lt;br /&gt;
inout="out" /&amp;gt;&lt;br /&gt;
&amp;lt;result&amp;gt;&lt;br /&gt;
&amp;lt;outparam id="1" type="STRUCT"&amp;gt;&lt;br /&gt;
&amp;lt;struct&amp;gt;&lt;br /&gt;
&amp;lt;field name="aField"&amp;gt;&lt;br /&gt;
&amp;lt;struct&amp;gt;&lt;br /&gt;
&amp;lt;field name="xField"&amp;gt;red&amp;lt;/field&amp;gt;&lt;br /&gt;
&amp;lt;field name="yField"&amp;gt;23.5&amp;lt;/field&amp;gt;&lt;br /&gt;
&amp;lt;/struct&amp;gt;&lt;br /&gt;
&amp;lt;/field&amp;gt;&lt;br /&gt;
&amp;lt;field name="bField"&amp;gt;NULL&amp;lt;/field&amp;gt;&lt;br /&gt;
&amp;lt;/struct&amp;gt;&lt;br /&gt;
&amp;lt;/outparam&amp;gt;&lt;br /&gt;
&amp;lt;/result&amp;gt;&lt;br /&gt;
&amp;lt;/test&amp;gt;&lt;/p&gt;
&lt;p&gt;UDTs must be declared in the connection.&lt;/p&gt;
&lt;p&gt;Example:&lt;br /&gt;
&amp;lt;connection&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;typemap&amp;gt;&lt;br /&gt;
&amp;lt;typedef typename="MY_OBJTYP"&lt;br /&gt;
classname="my.org.MyClass" /&amp;gt; &lt;br /&gt;
&amp;lt;typedef typename="THEIR_OBJTYP"&lt;br /&gt;
classname="their.org.TheirClass" /&amp;gt; &lt;br /&gt;
&amp;lt;/typemap&amp;gt;&lt;br /&gt;
&amp;lt;/connection&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Douglas Kvidera</dc:creator><pubDate>Tue, 13 Jun 2006 03:11:59 -0000</pubDate><guid>https://sourceforge.net2084e26618f1f5c4a9fe5a19bc9399368fbdb788</guid></item><item><title>Upgrade of Jdom.jar</title><link>https://sourceforge.net/p/sqlunit/patches/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I upgraded to the final version of JDom and that&lt;br /&gt;
required the following patches (attached).&lt;/p&gt;
&lt;p&gt;In addition to jdom-1.0.jar, I also upgraded:&lt;/p&gt;
&lt;p&gt;log4j-1.2.13.jar&lt;br /&gt;
commons-logging-1.0.4.jar&lt;br /&gt;
commons-lang-2.1.jar&lt;/p&gt;
&lt;p&gt;with no problems that I noticed - though many of the&lt;br /&gt;
unit tests seemed to assume a linux build environment.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul King</dc:creator><pubDate>Tue, 11 Apr 2006 21:52:31 -0000</pubDate><guid>https://sourceforge.net3cf1ea94305e57fea10cdb1f5b123dac06c98817</guid></item><item><title>Make Reporters fail when severe errors occur</title><link>https://sourceforge.net/p/sqlunit/patches/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When SQLUnit encounters a severe error, e.g.&lt;br /&gt;
a ClassNotFoundException when trying to load&lt;br /&gt;
the JDBC driver, the tests fail, but the reporter&lt;br /&gt;
reports a success.&lt;br /&gt;
This patch adds to the test failure count, so&lt;br /&gt;
the reporters knows that the tests failed.&lt;br /&gt;
I tested this with the canoo test reporter and&lt;br /&gt;
now I get a "successful='no'" instead of a 'yes' with&lt;br /&gt;
the full error message.&lt;br /&gt;
I do not know, however, if this breaks other tests!&lt;br /&gt;
Specifically, since there are so many&lt;br /&gt;
SQLUnitExceptions,&lt;br /&gt;
I did assume that all of them report some kind of&lt;br /&gt;
test failure. If that is not so, this patch&lt;br /&gt;
probably won't work. &lt;br /&gt;
The file that needs to be patched is SQLUnit.java. &lt;br /&gt;
Hope this helps &lt;br /&gt;
Andreas &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Kutschera</dc:creator><pubDate>Mon, 27 Mar 2006 15:12:03 -0000</pubDate><guid>https://sourceforge.net26d8a07270f6f333aaa0e3ab4a4c201f8b5a265b</guid></item><item><title>set test name for reporting purposes</title><link>https://sourceforge.net/p/sqlunit/patches/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Currently all SQLUnit tests are called "sqlunit" &lt;br /&gt;
in the report files. &lt;br /&gt;
When you have many different SQLUnit tests (e.g. &lt;br /&gt;
as part of Canoo Webtests, where I click on a button &lt;br /&gt;
and want to find out if the internal database has &lt;br /&gt;
been changed), it can get quite confusing. &lt;br /&gt;
Therefore I suggest an addition to the ant task, &lt;br /&gt;
where sqlunit gets an extra attribute "name", that &lt;br /&gt;
defaults to "sqlunit", but may be set to any string, &lt;br /&gt;
so test reports give you a quicker view about what &lt;br /&gt;
failed and what didn't. &lt;br /&gt;
This patch is against SqlunitTask.java Version 1.8. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Kutschera</dc:creator><pubDate>Tue, 21 Feb 2006 13:31:59 -0000</pubDate><guid>https://sourceforge.net173fd2b1a593d8a517881d3d16b7e6f12edb1d88</guid></item><item><title>Make changed ant properties available to ant</title><link>https://sourceforge.net/p/sqlunit/patches/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The enclosed patch provides the ability to return any&lt;br /&gt;
changed ant properties back to ant - they can then be&lt;br /&gt;
used elsewhere in the ant script. Ant properties are&lt;br /&gt;
sqlunit properties starting with the "${ant." prefix.&lt;/p&gt;
&lt;p&gt;Example build file:&lt;br /&gt;
---&lt;br /&gt;
&amp;lt;sqlunit testfile="sqltest.xml" haltOnFailure="false"&lt;br /&gt;
failureProperty="sqlunit.failed"/&amp;gt;&lt;br /&gt;
&amp;lt;echo message="NumColumns=${sqlunit-numcolumns}"/&amp;gt;&lt;br /&gt;
&amp;lt;fail if="sqlunit.failed"/&amp;gt;&lt;br /&gt;
---&lt;br /&gt;
Example sqlunit test file:&lt;br /&gt;
---&lt;br /&gt;
&amp;lt;sqlunit&amp;gt;&lt;br /&gt;
&amp;lt;connection.../&amp;gt;&lt;br /&gt;
&amp;lt;setup&amp;gt;&lt;br /&gt;
&amp;lt;set name="${ant}"&amp;gt;&lt;br /&gt;
&amp;lt;sql&amp;gt;&lt;br /&gt;
&amp;lt;stmt&amp;gt;select count(*) from AGECOMMENTS&amp;lt;/stmt&amp;gt;&lt;br /&gt;
&amp;lt;/sql&amp;gt;&lt;br /&gt;
&amp;lt;result&amp;gt;&lt;br /&gt;
&amp;lt;resultset id="1"&amp;gt;&lt;br /&gt;
&amp;lt;row id="1"&amp;gt;&lt;br /&gt;
&amp;lt;col id="1"&lt;br /&gt;
type="INTEGER"&amp;gt;${sqlunit-numcolumns}&amp;lt;/col&amp;gt;&lt;br /&gt;
&amp;lt;/row&amp;gt;&lt;br /&gt;
&amp;lt;/resultset&amp;gt;&lt;br /&gt;
&amp;lt;/result&amp;gt;&lt;br /&gt;
&amp;lt;/set&amp;gt;&lt;br /&gt;
&amp;lt;/setup&amp;gt;&lt;br /&gt;
&amp;lt;test .../&amp;gt;&lt;br /&gt;
&amp;lt;/sqlunit&amp;gt;&lt;br /&gt;
---&lt;/p&gt;
&lt;p&gt;It also enables the support for failureProperty (the&lt;br /&gt;
set method must have been left out when we proposed&lt;br /&gt;
this some time back) - see the example above.&lt;/p&gt;
&lt;p&gt;diff -c -r1.8 SqlunitTask.java&lt;br /&gt;
*** src/net/sourceforge/sqlunit/ant/SqlunitTask.java&lt;br /&gt;
28 Jul 2005 01:27:28 -0000      1.8&lt;br /&gt;
--- src/net/sourceforge/sqlunit/ant/SqlunitTask.java&lt;br /&gt;
20 Nov 2005 12:32:30 -0000&lt;br /&gt;
***************&lt;br /&gt;
*** 25,30 ****&lt;br /&gt;
--- 25,31 ----&lt;br /&gt;
import net.sourceforge.sqlunit.SQLUnit;&lt;br /&gt;
import net.sourceforge.sqlunit.SQLUnitException;&lt;br /&gt;
+ import net.sourceforge.sqlunit.SymbolTable;&lt;br /&gt;
import net.sourceforge.sqlunit.reporters.ReporterList;&lt;/p&gt;
&lt;p&gt;import org.apache.tools.ant.BuildException;&lt;br /&gt;
*** 143,152 ****&lt;br /&gt;
--- 144,168 ----&lt;br /&gt;
throw new BuildException(e.getMessage());&lt;br /&gt;
}&lt;br /&gt;
} finally {&lt;br /&gt;
+             restoreAntVariables();&lt;br /&gt;
if (logStream != null) { logStream.close(); }&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;+     private void restoreAntVariables() {&lt;br /&gt;
+         Iterator it = SymbolTable.getSymbols();&lt;br /&gt;
+         while (it.hasNext()) {&lt;br /&gt;
+             String key = (String) it.next();&lt;br /&gt;
+             if (key.startsWith("${ant.")) {&lt;br /&gt;
+                 String antkey = key.substring(6,&lt;br /&gt;
key.length()-1);&lt;br /&gt;
+                 String value = SymbolTable.getValue(key);&lt;br /&gt;
+                 if&lt;br /&gt;
(!value.equals(getProject().getProperty(antkey))) {&lt;br /&gt;
+                     getProject().setProperty(antkey,&lt;br /&gt;
value);&lt;br /&gt;
+                 }&lt;br /&gt;
+             }&lt;br /&gt;
+         }&lt;br /&gt;
+     }&lt;br /&gt;
+&lt;br /&gt;
/**&lt;br /&gt;
* Sets the value of the attribute testFile.&lt;br /&gt;
* @param testfile the full path name of the test&lt;br /&gt;
XML script.&lt;br /&gt;
***************&lt;br /&gt;
*** 164,169 ****&lt;br /&gt;
--- 180,193 ----&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
+      * Sets the name of an ant property to set if the&lt;br /&gt;
sqlunit execution fails.&lt;br /&gt;
+      * @param failureProperty name of ant property.&lt;br /&gt;
+      */&lt;br /&gt;
+     public final void setFailureProperty(final String&lt;br /&gt;
failureProperty) {&lt;br /&gt;
+         this.failureProperty = failureProperty;&lt;br /&gt;
+     }&lt;br /&gt;
+&lt;br /&gt;
+     /**&lt;br /&gt;
* Sets the value of the attribute debug.&lt;br /&gt;
* @param debug can be set to true or false. If&lt;br /&gt;
true, returns the&lt;br /&gt;
* full stack trace of where the problem occured,&lt;br /&gt;
else returns a short&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul King</dc:creator><pubDate>Sun, 20 Nov 2005 13:07:36 -0000</pubDate><guid>https://sourceforge.net4b68c3d5c3a59680701964e8c956f4b87f94dbb8</guid></item><item><title>Ant task supporting multiple reporters and its testcases</title><link>https://sourceforge.net/p/sqlunit/patches/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The following patches contains an extension to current&lt;br /&gt;
&amp;lt;sqlunit&amp;gt; task that provides support for multiple&lt;br /&gt;
reporters. The contents of the reporters.zip is: src/&lt;br /&gt;
dir that contains the task implementation and &lt;br /&gt;
tests/src/ dir that contains the testcases for the task.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ivan Ivanov</dc:creator><pubDate>Thu, 21 Jul 2005 20:07:21 -0000</pubDate><guid>https://sourceforge.netef081ddaca5252a0440febcd63915df8c88cceb8</guid></item><item><title>Documentation for &lt;classifiers&gt; tag</title><link>https://sourceforge.net/p/sqlunit/patches/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The attached zipped files contains:&lt;br /&gt;
1) javadoc.diff which stores the javadoc patches for&lt;br /&gt;
net.sourceforge.sqlunit.handlers.ClassifiersHandler /&lt;br /&gt;
CategoryHandler / SeverityHandler / SkipHandler.&lt;br /&gt;
2) tesgroupskip.xml is a short additition to SQLUnit&lt;br /&gt;
Users Guide and it should be merged in sqlunit-book.xml&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ivan Ivanov</dc:creator><pubDate>Mon, 13 Jun 2005 14:20:21 -0000</pubDate><guid>https://sourceforge.netee47ca43a353bf10a01cde522d23f4dc4fdf7fee</guid></item><item><title>Re: Support for customizable reporting</title><link>https://sourceforge.net/p/sqlunit/patches/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Not sure this really belongs as a patch (perhaps it&lt;br /&gt;
should have been in the previous submission). Anyway,&lt;br /&gt;
this shows you the output you can get if you use the&lt;br /&gt;
previous patch.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul King</dc:creator><pubDate>Thu, 20 May 2004 10:23:56 -0000</pubDate><guid>https://sourceforge.nete20fcbb40e2aa6da8d3647982f9ecda5481f467f</guid></item><item><title>Support for customizable reporting</title><link>https://sourceforge.net/p/sqlunit/patches/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have abstracted the reporting code formerly in&lt;br /&gt;
SQLUnit.java into a Reporter interface and added a&lt;br /&gt;
TextReporter which reports the same comments as the&lt;br /&gt;
existing code, and a CanooWebTestReporter which adds&lt;br /&gt;
support for outputting to an existing Canoo WebTest&lt;br /&gt;
results xml file.  This allows users to run both Canoo&lt;br /&gt;
and SQLUnit and see the results on the same page.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rob Nielsen</dc:creator><pubDate>Wed, 05 May 2004 08:09:56 -0000</pubDate><guid>https://sourceforge.net2fdb6cc1f8f131e6029330fd6ccc644af9786741</guid></item></channel></rss>