<?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/mockobjects/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/mockobjects/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 20 Oct 2004 21:18:27 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mockobjects/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Maven build patch</title><link>https://sourceforge.net/p/mockobjects/patches/22/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This patch is a little bit recursive, which is cool in&lt;br /&gt;
a sick way. Inside this patch is a shell script that&lt;br /&gt;
will rearrange the source folders to be more hospitible&lt;br /&gt;
to Maven. They like the sources to be separated from&lt;br /&gt;
the JUnit tests.&lt;/p&gt;
&lt;p&gt;The patch creates the Maven project.xml files to enable&lt;br /&gt;
multi-artifact compilation and packaging. It can even&lt;br /&gt;
be tweaked to include or exclude the JMS classes, as a&lt;br /&gt;
previous poster requested.&lt;/p&gt;
&lt;p&gt;Since the j2ee and servletapi jars are not available on&lt;br /&gt;
&lt;a href="http://ibiblio.org/maven/" rel="nofollow"&gt;http://ibiblio.org/maven/&lt;/a&gt; you'll need to install them&lt;br /&gt;
yourself into your local Maven repository.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matthew L Daniel</dc:creator><pubDate>Wed, 20 Oct 2004 21:18:27 -0000</pubDate><guid>https://sourceforge.net0bd4a821572e2c0fc57167e3be0cbf63bfcc435c</guid></item><item><title>patch for setStatus on MockHttpServletResponse</title><link>https://sourceforge.net/p/mockobjects/patches/21/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Adds a setExpectedStatus(int) method and makes &lt;br /&gt;
corresponding changes to setStatus(int) and setStatus&lt;br /&gt;
(int,String).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dmitri Colebatch</dc:creator><pubDate>Mon, 09 Aug 2004 05:59:45 -0000</pubDate><guid>https://sourceforge.net786994d3fe8cb11ff233e69a96a24e70be4b558e</guid></item><item><title>mockobject-atg</title><link>https://sourceforge.net/p/mockobjects/patches/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Contains a mock objects repository, a command runner,&lt;br /&gt;
and ant build script.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Sargent</dc:creator><pubDate>Thu, 26 Feb 2004 10:38:44 -0000</pubDate><guid>https://sourceforge.netb3b177bc99bf8cbbf60f0ec383fb13c1b9474c6b</guid></item><item><title>Changes to MockMessage</title><link>https://sourceforge.net/p/mockobjects/patches/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Implemented remainder of setXXXProperty and&lt;br /&gt;
getXXXProperty methods.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Krygowski</dc:creator><pubDate>Fri, 10 Oct 2003 16:51:06 -0000</pubDate><guid>https://sourceforge.netdf430e1425757719c012526935d53b81f018de0d</guid></item><item><title>Changes to MockMessage</title><link>https://sourceforge.net/p/mockobjects/patches/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Implemented remainder of setXXXProperty and&lt;br /&gt;
getXXXProperty methods.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Krygowski</dc:creator><pubDate>Fri, 10 Oct 2003 12:34:30 -0000</pubDate><guid>https://sourceforge.netf025207412f9d01bf2c5bdcfa2fc12a7b3747e54</guid></item><item><title>Added utility methods to CommonMockMultiRowResultSet</title><link>https://sourceforge.net/p/mockobjects/patches/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Needing the use of isBeforeFirst, isFirst, isLast, and &lt;br /&gt;
isAfterLast for a test, I added them to &lt;br /&gt;
CommonMockMultiRowResultSet myself. I had to change &lt;br /&gt;
the behavior of the myRowOffset pointer a little so that &lt;br /&gt;
it point base the last row when next() passed it. I have &lt;br /&gt;
a test case if anyone would like to see it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steven Blundy</dc:creator><pubDate>Tue, 05 Aug 2003 16:01:35 -0000</pubDate><guid>https://sourceforge.net2f684b47c8b3918393a71a7d1dff81c8a0b11afc</guid></item><item><title>Patch to allow mocking of any non-final class</title><link>https://sourceforge.net/p/mockobjects/patches/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The Proxy from cglib.sourceforge.net is a drop-in&lt;br /&gt;
replacement for the java.lang.reflect.Proxy class with&lt;br /&gt;
two important extra features:&lt;br /&gt;
- It can proxy concrete classes, not just interfaces.&lt;br /&gt;
- It can operate under JDK 1.2.2&lt;/p&gt;
&lt;p&gt;The attached patch replaces references to the reflect&lt;br /&gt;
Proxy with the cglib Proxy.&lt;/p&gt;
&lt;p&gt;This does add extra dependencies to mockobjects, in the&lt;br /&gt;
form of cglib and the underlying asm code. &lt;/p&gt;
&lt;p&gt;CGLib is released under the Apache License. It's&lt;br /&gt;
available from &lt;a href="http://cglib.sourceforge.net/"&gt;http://cglib.sourceforge.net/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;ASM is released under LGPL. It's available from&lt;br /&gt;
&lt;a href="http://asm.objectweb.org/" rel="nofollow"&gt;http://asm.objectweb.org/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Sheppard</dc:creator><pubDate>Fri, 27 Jun 2003 00:13:30 -0000</pubDate><guid>https://sourceforge.net5e3bde4a58e38e308fa0bc0a4de288248b2240f2</guid></item><item><title>Chaining setAttribute, removeAttribute</title><link>https://sourceforge.net/p/mockobjects/patches/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In the current MockHttpSession the methods &lt;br /&gt;
setAttribute and removeAttribute are not cooperating.&lt;br /&gt;
My suggested patch summerized:&lt;/p&gt;
&lt;p&gt;public void removeAttribute(String anAttributeName) {&lt;br /&gt;
+    myAttributeValues.remove(anAttributebuteName);&lt;br /&gt;
myRemovedAttributes.addActual(anAttributeName);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;public void setAttribute(String aKey, Object aValue) {&lt;br /&gt;
+    if(null==aValue) {&lt;br /&gt;
+        removeAttribute(aKey);&lt;br /&gt;
+    } else {&lt;br /&gt;
myAttributeValues.put(aKey, aValue);&lt;br /&gt;
myAttributes.addActual(new MapEntry(aKey, &lt;br /&gt;
aValue));&lt;br /&gt;
+    }&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;The change in setAttribute is motivated by the quote&lt;br /&gt;
&amp;amp;quot;If the value passed in is null, this has the same effect &lt;br /&gt;
as calling removeAttribute().&amp;amp;quot;&lt;br /&gt;
from the javadoc for this method.&lt;/p&gt;
&lt;p&gt;The same mechanism should be implemented for &lt;br /&gt;
MockServletContext and MockHttpServletRequest as &lt;br /&gt;
well (perhaps as a common super-class).&lt;/p&gt;
&lt;p&gt;In the patch I have also used the &lt;br /&gt;
identifier &amp;amp;quot;anAttributeName&amp;amp;quot; instead of the previously &lt;br /&gt;
used &amp;amp;quot;aKey&amp;amp;quot;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik Kaipe</dc:creator><pubDate>Tue, 05 Nov 2002 12:33:36 -0000</pubDate><guid>https://sourceforge.netcb2358db251e3023e403b0d7cd149b10e6a6af6b</guid></item><item><title>FAQ hack.</title><link>https://sourceforge.net/p/mockobjects/patches/14/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Drafted answers to a couple, added some more.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ted Husted</dc:creator><pubDate>Fri, 30 Aug 2002 12:32:11 -0000</pubDate><guid>https://sourceforge.net9ce92dbb5ab2073a97d1f8f7891e14558ca75bbd</guid></item><item><title>ResultSetMetaData - working copy.</title><link>https://sourceforge.net/p/mockobjects/patches/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;My working copy for reference.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ted Husted</dc:creator><pubDate>Thu, 29 Aug 2002 11:23:21 -0000</pubDate><guid>https://sourceforge.netdb81b49c9e8e4b4771924fe9d2cd09242a3335a9</guid></item></channel></rss>