<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Easier mocking with Mockito</title>
	<atom:link href="http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/</link>
	<description>Keep updated on what we&#039;re doing!</description>
	<lastBuildDate>Wed, 28 Jul 2010 21:43:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Mihir</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-3843</link>
		<dc:creator>Mihir</dc:creator>
		<pubDate>Fri, 09 Jul 2010 13:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-3843</guid>
		<description>How to write test cases for DAO layer in a Sruts applicaiton using Mockito?</description>
		<content:encoded><![CDATA[<p>How to write test cases for DAO layer in a Sruts applicaiton using Mockito?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petri</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-3700</link>
		<dc:creator>Petri</dc:creator>
		<pubDate>Mon, 28 Jun 2010 18:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-3700</guid>
		<description>I ended up here via Google, and I must say that this blog post is exactly what I have been looking for. I have been using Easymock for years in my projects, but recently I have been starting to investigate Mockito as its replacement. This is a very good explanation about their differences, and I am going to share this with my colleagues. Keep up the good work!</description>
		<content:encoded><![CDATA[<p>I ended up here via Google, and I must say that this blog post is exactly what I have been looking for. I have been using Easymock for years in my projects, but recently I have been starting to investigate Mockito as its replacement. This is a very good explanation about their differences, and I am going to share this with my colleagues. Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rony</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-1388</link>
		<dc:creator>Rony</dc:creator>
		<pubDate>Mon, 21 Dec 2009 10:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-1388</guid>
		<description>Very good post!</description>
		<content:encoded><![CDATA[<p>Very good post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-1222</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Wed, 02 Dec 2009 16:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-1222</guid>
		<description>Here&#039;s an interesting consequence of those default return values: null, 0 and false.

The equals() method on Mockito mock objects will return 0, so adding separate mock objects to a Set results in a just one of them in the Set, the others excluded because they&#039;re all technically equal. Surprising if you expected the default identity equals of Object. Still, it&#039;s an easy behaviour to explain and it&#039;s consistent, and there are solutions to the equals problem, so a reasonable choice on balance. 

I&#039;ve previously used both EasyMock and JMock, and while I&#039;m still in my first dozen classes developed with Mockito, it seems a solid alternative with some real benefits.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s an interesting consequence of those default return values: null, 0 and false.</p>
<p>The equals() method on Mockito mock objects will return 0, so adding separate mock objects to a Set results in a just one of them in the Set, the others excluded because they&#8217;re all technically equal. Surprising if you expected the default identity equals of Object. Still, it&#8217;s an easy behaviour to explain and it&#8217;s consistent, and there are solutions to the equals problem, so a reasonable choice on balance. </p>
<p>I&#8217;ve previously used both EasyMock and JMock, and while I&#8217;m still in my first dozen classes developed with Mockito, it seems a solid alternative with some real benefits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JTeam Technology Matrix: The Stars &#171; JTeam Blog / JTeam: Enterprise Java, Open Source, software solutions, Amsterdam</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-651</link>
		<dc:creator>JTeam Technology Matrix: The Stars &#171; JTeam Blog / JTeam: Enterprise Java, Open Source, software solutions, Amsterdam</dc:creator>
		<pubDate>Mon, 07 Sep 2009 10:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-651</guid>
		<description>[...] van Maris&#8217; blog post titled Easier mocking with Mockito describes how to use Mockito and how it compares to [...]</description>
		<content:encoded><![CDATA[<p>[...] van Maris&#8217; blog post titled Easier mocking with Mockito describes how to use Mockito and how it compares to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linkopedia August 2009 &#124; From the Editor of Methods &#38; Tools</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-572</link>
		<dc:creator>Linkopedia August 2009 &#124; From the Editor of Methods &#38; Tools</dc:creator>
		<pubDate>Wed, 19 Aug 2009 05:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-572</guid>
		<description>[...] Easier mocking with Mockito [...]</description>
		<content:encoded><![CDATA[<p>[...] Easier mocking with Mockito [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daily del.icio.us for August 13th through August 16th &#124; Vinny Carpenter's blog</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-543</link>
		<dc:creator>Daily del.icio.us for August 13th through August 16th &#124; Vinny Carpenter's blog</dc:creator>
		<pubDate>Sun, 16 Aug 2009 23:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-543</guid>
		<description>[...] Easier mocking with Mockito &#171; JTeam Blog / JTeam: Enterprise Java, Open Source, software solut... &#8211; I hope you can see by now why Mockito is a better alternative to EasyMock. At JTeam we&#8217;re adopting Mockito in all our new projects. And whenever we have to go back to EasyMock, in the code from earlier projects, we know it was a good move. Happy mocking! [...]</description>
		<content:encoded><![CDATA[<p>[...] Easier mocking with Mockito &laquo; JTeam Blog / JTeam: Enterprise Java, Open Source, software solut&#8230; &#8211; I hope you can see by now why Mockito is a better alternative to EasyMock. At JTeam we&rsquo;re adopting Mockito in all our new projects. And whenever we have to go back to EasyMock, in the code from earlier projects, we know it was a good move. Happy mocking! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Maris</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-541</link>
		<dc:creator>Rob van Maris</dc:creator>
		<pubDate>Sun, 16 Aug 2009 09:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-541</guid>
		<description>Rogério, you&#039;re right. EasyMock does provide &lt;strong&gt;createNiceMock(...)&lt;/strong&gt; to prevent overspecifying method calls, but this feature is relatively unknown. &quot;&lt;em&gt;Nice Mock&lt;/em&gt;&quot; is not quite self-explanatory, and the documentation treats it as a highly advanced feature. As a result it is little used, and developers are discouraged to pay more attention to the risks of overspecification. 
Mockito, on the other hand, makes this &quot;&lt;em&gt;nice mock&lt;/em&gt;&quot; the standard approach, much to its credit.</description>
		<content:encoded><![CDATA[<p>Rogério, you&#8217;re right. EasyMock does provide <strong>createNiceMock(&#8230;)</strong> to prevent overspecifying method calls, but this feature is relatively unknown. &#8220;<em>Nice Mock</em>&#8221; is not quite self-explanatory, and the documentation treats it as a highly advanced feature. As a result it is little used, and developers are discouraged to pay more attention to the risks of overspecification.<br />
Mockito, on the other hand, makes this &#8220;<em>nice mock</em>&#8221; the standard approach, much to its credit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Paul</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-539</link>
		<dc:creator>Richard Paul</dc:creator>
		<pubDate>Sat, 15 Aug 2009 10:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-539</guid>
		<description>Good write up, I switched from EasyMock to Mockito a while ago and have never looked back.  The main benefits are definitely test readability and avoiding over constraining of tests.

Mockito 1.8 also introduced BDD style aliases for those interested. e.g. given(...).willReturn(...) instead of when(...).thenReturn(...)
http://www.rapaul.com/2009/08/09/bddmockito-eclipse/</description>
		<content:encoded><![CDATA[<p>Good write up, I switched from EasyMock to Mockito a while ago and have never looked back.  The main benefits are definitely test readability and avoiding over constraining of tests.</p>
<p>Mockito 1.8 also introduced BDD style aliases for those interested. e.g. given(&#8230;).willReturn(&#8230;) instead of when(&#8230;).thenReturn(&#8230;)<br />
<a href="http://www.rapaul.com/2009/08/09/bddmockito-eclipse/" rel="nofollow">http://www.rapaul.com/2009/08/09/bddmockito-eclipse/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jettro Coenradie</title>
		<link>http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/comment-page-1/#comment-538</link>
		<dc:creator>Jettro Coenradie</dc:creator>
		<pubDate>Sat, 15 Aug 2009 07:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jteam.nl/?p=224#comment-538</guid>
		<description>Very nice post, gives me more reasons to abandon easymock.

thanks</description>
		<content:encoded><![CDATA[<p>Very nice post, gives me more reasons to abandon easymock.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
