<?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: Ramblings: Should unit tests talk to a data source?</title>
	<atom:link href="http://www.turnleafdesign.com/ramblings-should-unit-tests-talk-to-a-data-source/feed" rel="self" type="application/rss+xml" />
	<link>http://www.turnleafdesign.com/ramblings-should-unit-tests-talk-to-a-data-source</link>
	<description>Ramblings of a junior developer</description>
	<lastBuildDate>Thu, 12 Nov 2009 19:56:08 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mocking JDBC Connections with MockRunner &#124; Turnleaf Design</title>
		<link>http://www.turnleafdesign.com/ramblings-should-unit-tests-talk-to-a-data-source/comment-page-1#comment-404</link>
		<dc:creator>Mocking JDBC Connections with MockRunner &#124; Turnleaf Design</dc:creator>
		<pubDate>Wed, 11 Nov 2009 05:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=280#comment-404</guid>
		<description>[...] its data source. I decided to do some investigating into his claims, you can check out my findings here. I was however intrigued none the less and started looking for a tool that would allow me to easily [...]</description>
		<content:encoded><![CDATA[<p>[...] its data source. I decided to do some investigating into his claims, you can check out my findings here. I was however intrigued none the less and started looking for a tool that would allow me to easily [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rado</title>
		<link>http://www.turnleafdesign.com/ramblings-should-unit-tests-talk-to-a-data-source/comment-page-1#comment-401</link>
		<dc:creator>rado</dc:creator>
		<pubDate>Mon, 09 Nov 2009 19:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=280#comment-401</guid>
		<description>Go check out the &lt;a href=&quot;http://www.unitils.org/&quot; rel=&quot;nofollow&quot;&gt;untils.org&lt;/a&gt; site and use it, they have a lot of guidelines and help for testing against a database.  A &quot;unit test&quot; that hits a database is what I call an integration test.  Integration tests are very useful, especially when you want to test that your database interaction is correct.  So if you are developing a new database query, what you want is to test that your ORM mapping is correct and you can only do that by hitting the real database, a mock does not substitute.  When you have functionality you will find it easier to mock the database away at the persistence layer.  By mocking CustomerPersistence.findCustomer(int id) you can create a unit test that depends on it.  In that case you are isolating just the unit you are working on which is what I call a &quot;unit test&quot;.</description>
		<content:encoded><![CDATA[<p>Go check out the <a href="http://www.unitils.org/" rel="nofollow">untils.org</a> site and use it, they have a lot of guidelines and help for testing against a database.  A &#8220;unit test&#8221; that hits a database is what I call an integration test.  Integration tests are very useful, especially when you want to test that your database interaction is correct.  So if you are developing a new database query, what you want is to test that your ORM mapping is correct and you can only do that by hitting the real database, a mock does not substitute.  When you have functionality you will find it easier to mock the database away at the persistence layer.  By mocking CustomerPersistence.findCustomer(int id) you can create a unit test that depends on it.  In that case you are isolating just the unit you are working on which is what I call a &#8220;unit test&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Developer Art</title>
		<link>http://www.turnleafdesign.com/ramblings-should-unit-tests-talk-to-a-data-source/comment-page-1#comment-396</link>
		<dc:creator>Developer Art</dc:creator>
		<pubDate>Thu, 05 Nov 2009 14:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=280#comment-396</guid>
		<description>I&#039;ve just had an idea. Having your mocks fully support various database isolation levels can occupy you for months and years to come. That&#039;s probably one scenario when even buying an extra test database server would be better than wasting time and money on a developer trying to implement this support in a mock.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just had an idea. Having your mocks fully support various database isolation levels can occupy you for months and years to come. That&#8217;s probably one scenario when even buying an extra test database server would be better than wasting time and money on a developer trying to implement this support in a mock.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
