<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/mockobjects/patches/" rel="alternate"/><link href="https://sourceforge.net/p/mockobjects/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/mockobjects/patches/</id><updated>2004-10-20T21:18:27Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Maven build patch</title><link href="https://sourceforge.net/p/mockobjects/patches/22/" rel="alternate"/><published>2004-10-20T21:18:27Z</published><updated>2004-10-20T21:18:27Z</updated><author><name>Matthew L Daniel</name><uri>https://sourceforge.net/u/mdaniel/</uri></author><id>https://sourceforge.net0bd4a821572e2c0fc57167e3be0cbf63bfcc435c</id><summary type="html">&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;</summary></entry><entry><title>patch for setStatus on MockHttpServletResponse</title><link href="https://sourceforge.net/p/mockobjects/patches/21/" rel="alternate"/><published>2004-08-09T05:59:45Z</published><updated>2004-08-09T05:59:45Z</updated><author><name>Dmitri Colebatch</name><uri>https://sourceforge.net/u/dimc/</uri></author><id>https://sourceforge.net786994d3fe8cb11ff233e69a96a24e70be4b558e</id><summary type="html">&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;</summary></entry><entry><title>mockobject-atg</title><link href="https://sourceforge.net/p/mockobjects/patches/20/" rel="alternate"/><published>2004-02-26T10:38:44Z</published><updated>2004-02-26T10:38:44Z</updated><author><name>Will Sargent</name><uri>https://sourceforge.net/u/wsargent/</uri></author><id>https://sourceforge.netb3b177bc99bf8cbbf60f0ec383fb13c1b9474c6b</id><summary type="html">&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;</summary></entry><entry><title>Changes to MockMessage</title><link href="https://sourceforge.net/p/mockobjects/patches/19/" rel="alternate"/><published>2003-10-10T16:51:06Z</published><updated>2003-10-10T16:51:06Z</updated><author><name>Jim Krygowski</name><uri>https://sourceforge.net/u/jimkski/</uri></author><id>https://sourceforge.netdf430e1425757719c012526935d53b81f018de0d</id><summary type="html">&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;</summary></entry><entry><title>Changes to MockMessage</title><link href="https://sourceforge.net/p/mockobjects/patches/18/" rel="alternate"/><published>2003-10-10T12:34:30Z</published><updated>2003-10-10T12:34:30Z</updated><author><name>Jim Krygowski</name><uri>https://sourceforge.net/u/jimkski/</uri></author><id>https://sourceforge.netf025207412f9d01bf2c5bdcfa2fc12a7b3747e54</id><summary type="html">&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;</summary></entry><entry><title>Added utility methods to CommonMockMultiRowResultSet</title><link href="https://sourceforge.net/p/mockobjects/patches/17/" rel="alternate"/><published>2003-08-05T16:01:35Z</published><updated>2003-08-05T16:01:35Z</updated><author><name>Steven Blundy</name><uri>https://sourceforge.net/u/elgonzzo/</uri></author><id>https://sourceforge.net2f684b47c8b3918393a71a7d1dff81c8a0b11afc</id><summary type="html">&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;</summary></entry><entry><title>Patch to allow mocking of any non-final class</title><link href="https://sourceforge.net/p/mockobjects/patches/16/" rel="alternate"/><published>2003-06-27T00:13:30Z</published><updated>2003-06-27T00:13:30Z</updated><author><name>Daniel Sheppard</name><uri>https://sourceforge.net/u/danshep/</uri></author><id>https://sourceforge.net5e3bde4a58e38e308fa0bc0a4de288248b2240f2</id><summary type="html">&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;</summary></entry><entry><title>Chaining setAttribute, removeAttribute</title><link href="https://sourceforge.net/p/mockobjects/patches/15/" rel="alternate"/><published>2002-11-05T12:33:36Z</published><updated>2002-11-05T12:33:36Z</updated><author><name>Henrik Kaipe</name><uri>https://sourceforge.net/u/kaipe/</uri></author><id>https://sourceforge.netcb2358db251e3023e403b0d7cd149b10e6a6af6b</id><summary type="html">&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;</summary></entry><entry><title>FAQ hack.</title><link href="https://sourceforge.net/p/mockobjects/patches/14/" rel="alternate"/><published>2002-08-30T12:32:11Z</published><updated>2002-08-30T12:32:11Z</updated><author><name>Ted Husted</name><uri>https://sourceforge.net/u/thusted/</uri></author><id>https://sourceforge.net9ce92dbb5ab2073a97d1f8f7891e14558ca75bbd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Drafted answers to a couple, added some more.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ResultSetMetaData - working copy.</title><link href="https://sourceforge.net/p/mockobjects/patches/13/" rel="alternate"/><published>2002-08-29T11:23:21Z</published><updated>2002-08-29T11:23:21Z</updated><author><name>Ted Husted</name><uri>https://sourceforge.net/u/thusted/</uri></author><id>https://sourceforge.netdb81b49c9e8e4b4771924fe9d2cd09242a3335a9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My working copy for reference.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>