<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/mockobjects/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/mockobjects/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 07 Jan 2007 15:51:11 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mockobjects/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>AssertMo.failNotEquals() has wrong visibility</title><link>https://sourceforge.net/p/mockobjects/bugs/35/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The com.mockobjects.util.AssertMo.failNotEquals()method is declared as static protected void. However, since JUnit 3.8.2 (actually, CVS revision 1.19 of Assert), the visibility of junit.framework.Assert.failNotEquals() has changed from private to public. &lt;/p&gt;
&lt;p&gt;This means that the com.mockobjects.util.AssertMo class will not compile against JUnit 3.8.2. &lt;/p&gt;
&lt;p&gt;This needs to be fixed by modifying the visibility of the AssertMo.failNotEquals() method from protected to public. I have attached a file with this change made, based on revision 1.3.2.1 of the AssertMo class.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Emmett</dc:creator><pubDate>Sun, 07 Jan 2007 15:51:11 -0000</pubDate><guid>https://sourceforge.net3224d6254350f9f654cbcf9cdaf7a87e58eb559b</guid></item><item><title>J2EE1.3 ServletRequest.getParameter() no param error</title><link>https://sourceforge.net/p/mockobjects/bugs/34/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Method getParameter(String) on MockHttpServletRequest&lt;br /&gt;
throws an Error for a parameter that is not included on&lt;br /&gt;
J2EE 1.3.&lt;/p&gt;
&lt;p&gt;On version 1.2 getParameterValues(String key) calls&lt;br /&gt;
get(key) on the ReturnObjectBag that contains the&lt;br /&gt;
parameters. In version 1.3 calls getNextReturnObject(key).&lt;/p&gt;
&lt;p&gt;ReturnObjectBag.getNextReturnObject() has an assert to&lt;br /&gt;
check that the value to return is not null.&lt;/p&gt;
&lt;p&gt;I think this is not an improvement as the mocked&lt;br /&gt;
HttpServletRequest doesn't throw an exception when&lt;br /&gt;
getting a parameter that is not included in the&lt;br /&gt;
request, it returns null.&lt;/p&gt;
&lt;p&gt;Also, this assert doesn't permit to test code that&lt;br /&gt;
deals with the situation that a parameter is not coming&lt;br /&gt;
with the request.&lt;/p&gt;
&lt;p&gt;Trace of the Error:&lt;/p&gt;
&lt;p&gt;junit.framework.AssertionFailedError: parameters does&lt;br /&gt;
not contain itemId&lt;br /&gt;
at junit.framework.Assert.fail(Assert.java:51)&lt;br /&gt;
at junit.framework.Assert.assertTrue(Assert.java:38)&lt;br /&gt;
at junit.framework.Assert.assertNotNull&lt;br /&gt;
(Assert.java:199)&lt;br /&gt;
at com.mockobjects.ReturnObjectBag.getNextReturnObject  &lt;br /&gt;
(ReturnObjectBag.java:109)&lt;br /&gt;
at com.mockobjects.servlet.MockHttpServletRequest    &lt;br /&gt;
.getParameterValues(MockHttpServletRequest.java:185)&lt;br /&gt;
at com.mockobjects.servlet.MockHttpServletRequest&lt;br /&gt;
.getParameter(MockHttpServletRequest.java:169)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cparedes</dc:creator><pubDate>Tue, 21 Mar 2006 12:09:25 -0000</pubDate><guid>https://sourceforge.net3c083d7e3d7a6b77d9da927c09008fd64dabb407</guid></item><item><title>make class MockResultSet public</title><link>https://sourceforge.net/p/mockobjects/bugs/33/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Reason: I have written some helper code for simplify&lt;br /&gt;
mock testing of JDBC.&lt;br /&gt;
It looks like follows:&lt;/p&gt;
&lt;p&gt;private Object&lt;br /&gt;
executePreparedStatementAndVerify(IDBOperation operation,&lt;/p&gt;
&lt;p&gt;MockPreparedStatement prepared,&lt;/p&gt;
&lt;p&gt;MockMultiRowResultSet aResultSet) {&lt;br /&gt;
prepared.addResultSet(aResultSet);&lt;/p&gt;
&lt;p&gt;connection.setupAddPreparedStatement(operation.getStatementSQL(),&lt;br /&gt;
prepared);&lt;br /&gt;
Object result = operation.executeDBCall();&lt;br /&gt;
aResultSet.verify();&lt;br /&gt;
prepared.verify();&lt;br /&gt;
connection.verify();&lt;br /&gt;
return result;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;However, when I want to change it for using&lt;br /&gt;
MockResultSet, (as I like to support the both&lt;br /&gt;
MockMultiRowResultSet and MockSingleRowResultSet with&lt;br /&gt;
this method).&lt;/p&gt;
&lt;p&gt;MockPreparedStatement accepts MockResultSets, but as&lt;br /&gt;
this class is package local, I can not use it in the&lt;br /&gt;
code outside of com.mockobjects.sql.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergey Yevtushenko</dc:creator><pubDate>Thu, 18 Aug 2005 07:52:54 -0000</pubDate><guid>https://sourceforge.net0be315c0169758730c512fee0908e061a2e80986</guid></item><item><title>Source Distribution contains CVS folders</title><link>https://sourceforge.net/p/mockobjects/bugs/32/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It would probably be better to filter them when building &lt;br /&gt;
the tar file.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ilja Preuß</dc:creator><pubDate>Tue, 20 Jul 2004 15:03:47 -0000</pubDate><guid>https://sourceforge.net8b936b5af0c21a90dcd46cf495d7b80cc31d667a</guid></item><item><title>Broken URL</title><link>https://sourceforge.net/p/mockobjects/bugs/31/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The 1st hyper link on page: &lt;br /&gt;
&lt;a href="http://www.mockobjects.com/MocksObjectsPaper.html" rel="nofollow"&gt;http://www.mockobjects.com/MocksObjectsPaper.html&lt;/a&gt;&lt;br /&gt;
is broken.&lt;/p&gt;
&lt;p&gt;nick_freespirit@yahoo.com&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 24 Jun 2004 20:13:38 -0000</pubDate><guid>https://sourceforge.net129fbe47b30bd2a3cc38952266ff3e91f9cbb50c</guid></item><item><title>Critical: NEED 0.9.1 CallSequence.reset NOT resets callIndex</title><link>https://sourceforge.net/p/mockobjects/bugs/30/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, gang! Awesome job, well done!&lt;/p&gt;
&lt;p&gt;I see that lots has happened since 0.9, but I'm pledging &lt;br /&gt;
you the world needs 0.9.1 release!&lt;/p&gt;
&lt;p&gt;com.mockobjects.dynamic.CallSequence.reset()&lt;/p&gt;
&lt;p&gt;does not reset callIndex to zero, making reset() unusable.&lt;/p&gt;
&lt;p&gt;Here's the fix:&lt;/p&gt;
&lt;p&gt;public void reset()&lt;br /&gt;
{&lt;br /&gt;
this.expectedCalls.clear();&lt;br /&gt;
this.matchedCalls.reset();      &lt;br /&gt;
+        callIndex = 0;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;PLEASE, DO ROLL OUT A 0.9.1, IT'S REALLY CRITICAL&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anton Tagunov</dc:creator><pubDate>Fri, 28 May 2004 15:19:07 -0000</pubDate><guid>https://sourceforge.net246b43038174aa7f709a6e8c4d42bce2ba9b8582</guid></item><item><title>mockobjects does not compile on Gump</title><link>https://sourceforge.net/p/mockobjects/bugs/29/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The gump build &lt;br /&gt;
&lt;a href="http://lsd.student.utwente.nl/gump/mockobjects/mockobjects.html" rel="nofollow"&gt;http://lsd.student.utwente.nl/gump/mockobjects/mockobjects.html&lt;/a&gt;&lt;br /&gt;
tries to compile the class&lt;br /&gt;
core.test.mockobjects.dynamic.InvocationMatcherTest&lt;/p&gt;
&lt;p&gt;this class does not compile because it tries to use the&lt;br /&gt;
internal class&lt;br /&gt;
com.mockobjects.dynamic.InvocationMatcher.Arguments&lt;br /&gt;
which was suppressed on the 29th of October :&lt;br /&gt;
&lt;a href="http://cvs.sourceforge.net/viewcvs.py/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/InvocationMatcher.java?r1=1.3&amp;amp;r2=1.4"&gt;http://cvs.sourceforge.net/viewcvs.py/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/InvocationMatcher.java?r1=1.3&amp;amp;r2=1.4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;*there are lots of dependencies for mockobjects in gump&lt;br /&gt;
* Can you fix your program quickly ?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Antoine Levy-Lambert&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Antoine Levy-Lambert</dc:creator><pubDate>Sun, 01 Feb 2004 21:33:27 -0000</pubDate><guid>https://sourceforge.netfda70ec0a71466e530ffdfd55ff5989113ef3dcf</guid></item><item><title>MockHttpServletRequest setupGetAttributeNames Mispelled</title><link>https://sourceforge.net/p/mockobjects/bugs/28/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On the MockHttpRequest, the method&lt;br /&gt;
setupExpectedAttribute is spelled&lt;br /&gt;
setupExpectedAttrubute.  I'm assuming this is spelled&lt;br /&gt;
incorrect.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike Olson</dc:creator><pubDate>Mon, 15 Dec 2003 16:46:07 -0000</pubDate><guid>https://sourceforge.netf69525f60bd251dfb404e5e85e49bd9a4b17648c</guid></item><item><title>MockFileInputStream not platform independent</title><link>https://sourceforge.net/p/mockobjects/bugs/27/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Because a FileInputStream needs a real file to be &lt;br /&gt;
instantiated, the corresponding mock object also needs such &lt;br /&gt;
a file.  For this reason, a KNOWN_FILE static member is &lt;br /&gt;
used, it is specified as C:/autoexec.bat&lt;br /&gt;
It is obvious that this only works on Windows, resulting in a &lt;br /&gt;
FileNotFound exception.  If this public static member would &lt;br /&gt;
have been changeable, no problem, but it happens to be &lt;br /&gt;
final.&lt;br /&gt;
A better approach is to create a temp file and make sure it &lt;br /&gt;
is deleted upon shutdown of the VM.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gino Marckx</dc:creator><pubDate>Wed, 10 Dec 2003 20:51:21 -0000</pubDate><guid>https://sourceforge.netcfd404eddd9dec27646dcf2c0e2a0c7c06e62e03</guid></item><item><title>Mock.expect() can't handle null values for method parameters</title><link>https://sourceforge.net/p/mockobjects/bugs/26/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In mock interface I have method setAttribute(&lt;br /&gt;
name:String, value:String):void. So, I wrote the&lt;br /&gt;
following condition:&lt;/p&gt;
&lt;p&gt;mockServletContext.expect( &amp;amp;quot;setAttribute&amp;amp;quot;, new&lt;br /&gt;
ConstraintMatcher() {&lt;br /&gt;
public boolean matches( Object[] args) {&lt;br /&gt;
if( &amp;amp;quot;myname&amp;amp;quot;.equals( args[ 0])) {&lt;br /&gt;
return true;&lt;br /&gt;
}&lt;br /&gt;
return false;&lt;br /&gt;
}&lt;br /&gt;
public Object[] getConstraints() {&lt;br /&gt;
return new Object[] {};&lt;br /&gt;
}&lt;br /&gt;
});&lt;/p&gt;
&lt;p&gt;This code should handle any value. However if method is&lt;br /&gt;
called with null value I have an exception:&lt;/p&gt;
&lt;p&gt;java.lang.NullPointerException&lt;br /&gt;
at&lt;br /&gt;
com.mockobjects.dynamic.DynamicUtil.join(DynamicUtil.java:118)&lt;br /&gt;
at&lt;br /&gt;
com.mockobjects.dynamic.DynamicUtil.methodToString(DynamicUtil.java:104)&lt;br /&gt;
at&lt;br /&gt;
com.mockobjects.dynamic.CallCollection.createUnexpectedCallError(CallCollection.java:11)&lt;br /&gt;
at com.mockobjects.dynamic.CallBag.call(CallBag.java:31)&lt;br /&gt;
at com.mockobjects.dynamic.Mock.invoke(Mock.java:88)&lt;br /&gt;
at $Proxy0.setAttribute(Unknown Source)&lt;br /&gt;
.....&lt;/p&gt;
&lt;p&gt;Am I doing something wrong?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eugene Kuleshov</dc:creator><pubDate>Wed, 12 Nov 2003 16:33:07 -0000</pubDate><guid>https://sourceforge.netdc29bedc4494ad7f1c9e3350fc44abe8ceadc98d</guid></item></channel></rss>