<?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: TDD: Only mock types you own</title>
	<atom:link href="http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: WYTIWYR : What You Test Is What You Run &#171; Antonio&#039;s Blog</title>
		<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/comment-page-1/#comment-126155</link>
		<dc:creator>WYTIWYR : What You Test Is What You Run &#171; Antonio&#039;s Blog</dc:creator>
		<pubDate>Mon, 16 Jan 2012 14:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1922#comment-126155</guid>
		<description>[...] EE and you had to do many different tricks. That&#8217;s why we used extensively unit testing and mocked even objects that we don&#8217;t owe (like the EntityManager). But since Java EE 6, thanks to all our container factories [...]</description>
		<content:encoded><![CDATA[<p>[...] EE and you had to do many different tricks. That&#8217;s why we used extensively unit testing and mocked even objects that we don&#8217;t owe (like the EntityManager). But since Java EE 6, thanks to all our container factories [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Episode 7 &#8211; Survivors &#124; Marcelo Costa</title>
		<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/comment-page-1/#comment-35746</link>
		<dc:creator>Episode 7 &#8211; Survivors &#124; Marcelo Costa</dc:creator>
		<pubDate>Wed, 28 Apr 2010 03:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1922#comment-35746</guid>
		<description>[...] then talk about “Only mock types you own”, as interpreted by Liz Douglas and Mark Needham (the article they refer to is “Mock Roles, Not Objects”). And we end the show on time (like [...]</description>
		<content:encoded><![CDATA[<p>[...] then talk about “Only mock types you own”, as interpreted by Liz Douglas and Mark Needham (the article they refer to is “Mock Roles, Not Objects”). And we end the show on time (like [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TypeMock gets it wrong on ORM &#171; On the Heap</title>
		<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/comment-page-1/#comment-29831</link>
		<dc:creator>TypeMock gets it wrong on ORM &#171; On the Heap</dc:creator>
		<pubDate>Tue, 05 Jan 2010 20:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1922#comment-29831</guid>
		<description>[...] TypeMock gets it wrong on&#160;ORM    Posted January 5, 2010 Filed under: Uncategorized &#124;   The fellas at TypeMock recently discussed &#8220;Mocking only what you own&#8221; in response to a cogent though not very helpful post from normally lucid author Mark Needham. [...]</description>
		<content:encoded><![CDATA[<p>[...] TypeMock gets it wrong on&nbsp;ORM    Posted January 5, 2010 Filed under: Uncategorized |   The fellas at TypeMock recently discussed &#8220;Mocking only what you own&#8221; in response to a cogent though not very helpful post from normally lucid author Mark Needham. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gil Zilberfeld</title>
		<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/comment-page-1/#comment-28433</link>
		<dc:creator>Gil Zilberfeld</dc:creator>
		<pubDate>Wed, 16 Dec 2009 13:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1922#comment-28433</guid>
		<description>Hi Mark,

In our latest installment of our webcast &lt;a href=&quot;http://www.typemock.com/this-week-in-test/2009/12/16/episode-7-survivors.html&quot; rel=&quot;nofollow&quot;&gt;This week in testing&lt;/a&gt;, we talked about your (and Liz&#039;s) post. I invite you to check it out, comment and if you really like what you see, and want to see more, spread the word.

Gil Zilberfeld, Typemock</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>In our latest installment of our webcast <a href="http://www.typemock.com/this-week-in-test/2009/12/16/episode-7-survivors.html" rel="nofollow">This week in testing</a>, we talked about your (and Liz&#8217;s) post. I invite you to check it out, comment and if you really like what you see, and want to see more, spread the word.</p>
<p>Gil Zilberfeld, Typemock</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rogério Liesenfeld</title>
		<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/comment-page-1/#comment-28330</link>
		<dc:creator>Rogério Liesenfeld</dc:creator>
		<pubDate>Tue, 15 Dec 2009 00:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1922#comment-28330</guid>
		<description>I am with &quot;mike&quot; on this.

If you are writing integration tests, then let them use the real thing (Hibernate in this case) and hit the database.

In unit tests, OTOH, I would always directly mock the library (the EntityManager interface). All Java libraries are mockable, so there is no need to wrap any of them.

The true &quot;world of pain&quot; is having to create (and maintain) a lot of extra production code with no business or technical value, when you could write simple and direct tests instead.</description>
		<content:encoded><![CDATA[<p>I am with &#8220;mike&#8221; on this.</p>
<p>If you are writing integration tests, then let them use the real thing (Hibernate in this case) and hit the database.</p>
<p>In unit tests, OTOH, I would always directly mock the library (the EntityManager interface). All Java libraries are mockable, so there is no need to wrap any of them.</p>
<p>The true &#8220;world of pain&#8221; is having to create (and maintain) a lot of extra production code with no business or technical value, when you could write simple and direct tests instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Harris</title>
		<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/comment-page-1/#comment-28273</link>
		<dc:creator>Simon Harris</dc:creator>
		<pubDate>Sun, 13 Dec 2009 23:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1922#comment-28273</guid>
		<description>Reminds me of another post I wrote back in 2003 http://www.harukizaemon.com/2003/11/don-mock-infrastructure.html. This is getting spooky :)</description>
		<content:encoded><![CDATA[<p>Reminds me of another post I wrote back in 2003 <a href="http://www.harukizaemon.com/2003/11/don-mock-infrastructure.html" rel="nofollow">http://www.harukizaemon.com/2003/11/don-mock-infrastructure.html</a>. This is getting spooky <img src='http://www.markhneedham.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: msuarz</title>
		<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/comment-page-1/#comment-28263</link>
		<dc:creator>msuarz</dc:creator>
		<pubDate>Sun, 13 Dec 2009 15:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1922#comment-28263</guid>
		<description>I&#039;m not with this 100% ... I always have two levels of tests ... acceptance n&#039; unit ... the acceptance test uses the real thing, unit mocks everything ...

If the library I&#039;m using allows mocking I&#039;ll mock it ... If not I&#039;ll wrap it with a interface + class or just with a virtual function + partial mock

But in any case ... the acceptance test is the one that would do the integration part ... so i don&#039;t see the big deal with this

cheers
mike</description>
		<content:encoded><![CDATA[<p>I&#8217;m not with this 100% &#8230; I always have two levels of tests &#8230; acceptance n&#8217; unit &#8230; the acceptance test uses the real thing, unit mocks everything &#8230;</p>
<p>If the library I&#8217;m using allows mocking I&#8217;ll mock it &#8230; If not I&#8217;ll wrap it with a interface + class or just with a virtual function + partial mock</p>
<p>But in any case &#8230; the acceptance test is the one that would do the integration part &#8230; so i don&#8217;t see the big deal with this</p>
<p>cheers<br />
mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention TDD: Only mock types you own at Mark Needham -- Topsy.com</title>
		<link>http://www.markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own/comment-page-1/#comment-28259</link>
		<dc:creator>Tweets that mention TDD: Only mock types you own at Mark Needham -- Topsy.com</dc:creator>
		<pubDate>Sun, 13 Dec 2009 12:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1922#comment-28259</guid>
		<description>[...] This post was mentioned on Twitter by Mark Needham, aDevilInMe. aDevilInMe said: Some people may disagree but do they know what a mock is? RT @markhneedham: thoughts on mocking types ... - http://bit.ly/8RHGk1 [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Mark Needham, aDevilInMe. aDevilInMe said: Some people may disagree but do they know what a mock is? RT @markhneedham: thoughts on mocking types &#8230; &#8211; <a href="http://bit.ly/8RHGk1" rel="nofollow">http://bit.ly/8RHGk1</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

