<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Can I test what I want, please?</title>
	<atom:link href="http://monkeyisland.pl/2008/02/24/can-i-test-what-i-want-please/feed/" rel="self" type="application/rss+xml" />
	<link>http://monkeyisland.pl/2008/02/24/can-i-test-what-i-want-please/</link>
	<description>about software</description>
	<lastBuildDate>Fri, 11 May 2012 11:03:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Java: Open Source Mocking Framework &#124; Programming Resources</title>
		<link>http://monkeyisland.pl/2008/02/24/can-i-test-what-i-want-please/#comment-3004</link>
		<dc:creator><![CDATA[Java: Open Source Mocking Framework &#124; Programming Resources]]></dc:creator>
		<pubDate>Fri, 24 Oct 2008 16:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://szczepiq.wordpress.com/?p=67#comment-3004</guid>
		<description><![CDATA[[...] intuitive approach: you ask questions about interactions after execution. Using mockito, you can verify what you want. Using expect-run-verify libraries you are often forced to look after irrelevant [...]]]></description>
		<content:encoded><![CDATA[<p>[...] intuitive approach: you ask questions about interactions after execution. Using mockito, you can verify what you want. Using expect-run-verify libraries you are often forced to look after irrelevant [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szczepiq</title>
		<link>http://monkeyisland.pl/2008/02/24/can-i-test-what-i-want-please/#comment-2809</link>
		<dc:creator><![CDATA[szczepiq]]></dc:creator>
		<pubDate>Thu, 13 Mar 2008 16:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://szczepiq.wordpress.com/?p=67#comment-2809</guid>
		<description><![CDATA[&gt;aren’t your mocks in fact stubs?

They are spies. You can ask them questions about interactions. Effectively you can verify them.

&gt;the library name

Only geeks see any relation to mocking. It&#039;s all about drinking! :)]]></description>
		<content:encoded><![CDATA[<p>&gt;aren’t your mocks in fact stubs?</p>
<p>They are spies. You can ask them questions about interactions. Effectively you can verify them.</p>
<p>&gt;the library name</p>
<p>Only geeks see any relation to mocking. It&#8217;s all about drinking! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcin</title>
		<link>http://monkeyisland.pl/2008/02/24/can-i-test-what-i-want-please/#comment-2808</link>
		<dc:creator><![CDATA[Marcin]]></dc:creator>
		<pubDate>Thu, 13 Mar 2008 12:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://szczepiq.wordpress.com/?p=67#comment-2808</guid>
		<description><![CDATA[I&#039;m not quite getting it.
Based on the example above, aren&#039;t your mocks in fact stubs? They&#039;re not verifying anything. So probably the library name is a little bit deprecated?
I personally like stubbing instead of mocking but I would like to have a library that can do both (rSpec does that).]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not quite getting it.<br />
Based on the example above, aren&#8217;t your mocks in fact stubs? They&#8217;re not verifying anything. So probably the library name is a little bit deprecated?<br />
I personally like stubbing instead of mocking but I would like to have a library that can do both (rSpec does that).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szczepiq</title>
		<link>http://monkeyisland.pl/2008/02/24/can-i-test-what-i-want-please/#comment-2797</link>
		<dc:creator><![CDATA[szczepiq]]></dc:creator>
		<pubDate>Thu, 06 Mar 2008 23:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://szczepiq.wordpress.com/?p=67#comment-2797</guid>
		<description><![CDATA[&gt;It seems like you’d end up writing two lines of code, one stub and one verify

Not really: stubs are implicitly verified - by the fact that stubbed value is essential for processing. Returned value is just more interesting... Do you remember the old days when we craft our stubs by hand? Did you ever verify your hand-written stubs?

&gt; What if returning true from those two methods is important?

Then I&#039;d stub it ;) In most cases an interaction is either asking (which I want to stub) or telling (which I want to verify).]]></description>
		<content:encoded><![CDATA[<p>&gt;It seems like you’d end up writing two lines of code, one stub and one verify</p>
<p>Not really: stubs are implicitly verified &#8211; by the fact that stubbed value is essential for processing. Returned value is just more interesting&#8230; Do you remember the old days when we craft our stubs by hand? Did you ever verify your hand-written stubs?</p>
<p>&gt; What if returning true from those two methods is important?</p>
<p>Then I&#8217;d stub it ;) In most cases an interaction is either asking (which I want to stub) or telling (which I want to verify).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Jensen</title>
		<link>http://monkeyisland.pl/2008/02/24/can-i-test-what-i-want-please/#comment-2793</link>
		<dc:creator><![CDATA[Aaron Jensen]]></dc:creator>
		<pubDate>Wed, 05 Mar 2008 14:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://szczepiq.wordpress.com/?p=67#comment-2793</guid>
		<description><![CDATA[It seems like you&#039;d end up writing two lines of code, one stub and one verify in cases where you want to verify that something was called that also returns something that is important to the execution flow. On your google code you provide this example:

EasyMock

  Control control = createStrictControl();  
  
  List one = control.createMock(List.class);                            
  List two = control.createMock(List.class);                            
  
  expect(one.add(&quot;one&quot;)).andReturn(true);
  expect(two.add(&quot;two&quot;)).andReturn(true);
  
  control.replay();
  
  someCodeThatInteractsWithMocks();                                                     

  control.verify();     

Mockito

  List one = mock(List.class);  
  List two = mock(List.class);          
  
  someCodeThatInteractsWithMocks();     
  
  InOrder inOrder = inOrder(one, two);
                                                            
  inOrder.verify(one).add(&quot;one&quot;);
  inOrder.verify(two).add(&quot;two&quot;);

What if returning true from those two methods is important?]]></description>
		<content:encoded><![CDATA[<p>It seems like you&#8217;d end up writing two lines of code, one stub and one verify in cases where you want to verify that something was called that also returns something that is important to the execution flow. On your google code you provide this example:</p>
<p>EasyMock</p>
<p>  Control control = createStrictControl();  </p>
<p>  List one = control.createMock(List.class);<br />
  List two = control.createMock(List.class);                            </p>
<p>  expect(one.add(&#8220;one&#8221;)).andReturn(true);<br />
  expect(two.add(&#8220;two&#8221;)).andReturn(true);</p>
<p>  control.replay();</p>
<p>  someCodeThatInteractsWithMocks();                                                     </p>
<p>  control.verify();     </p>
<p>Mockito</p>
<p>  List one = mock(List.class);<br />
  List two = mock(List.class);          </p>
<p>  someCodeThatInteractsWithMocks();     </p>
<p>  InOrder inOrder = inOrder(one, two);</p>
<p>  inOrder.verify(one).add(&#8220;one&#8221;);<br />
  inOrder.verify(two).add(&#8220;two&#8221;);</p>
<p>What if returning true from those two methods is important?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

