<?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: Don&#8217;t propagate exceptions in test fixtures</title>
	<atom:link href="http://twasink.net/blog/2005/02/dont-propagate-exceptions-in-test-fixtures/feed/" rel="self" type="application/rss+xml" />
	<link>http://twasink.net/blog/2005/02/dont-propagate-exceptions-in-test-fixtures/</link>
	<description>Robert's Rambling Ruminations Regarding Reality</description>
	<lastBuildDate>Mon, 19 Jul 2010 23:02:46 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tom</title>
		<link>http://twasink.net/blog/2005/02/dont-propagate-exceptions-in-test-fixtures/comment-page-1/#comment-93</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 11 Feb 2005 10:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://twasink.net/wp/?p=107#comment-93</guid>
		<description>Yup, thought of that almost as soon as I pressed the post button. Must remember to live in the real world.
</description>
		<content:encoded><![CDATA[<p>Yup, thought of that almost as soon as I pressed the post button. Must remember to live in the real world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Watkins</title>
		<link>http://twasink.net/blog/2005/02/dont-propagate-exceptions-in-test-fixtures/comment-page-1/#comment-92</link>
		<dc:creator>Robert Watkins</dc:creator>
		<pubDate>Thu, 10 Feb 2005 15:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://twasink.net/wp/?p=107#comment-92</guid>
		<description>Unfortunately, as soon as you get two tests in a test class, you have the chance that the &quot;setup&quot; may not be as common as you would like.
</description>
		<content:encoded><![CDATA[<p>Unfortunately, as soon as you get two tests in a test class, you have the chance that the &#8220;setup&#8221; may not be as common as you would like.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://twasink.net/blog/2005/02/dont-propagate-exceptions-in-test-fixtures/comment-page-1/#comment-91</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 10 Feb 2005 14:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://twasink.net/wp/?p=107#comment-91</guid>
		<description>Ideally you would do the setup of the &quot;test&quot; instance in the setUp() method of your test class, and therefore leaving your test method signature pristine .... ok, so maybe I like to fantasize.
</description>
		<content:encoded><![CDATA[<p>Ideally you would do the setup of the &#8220;test&#8221; instance in the setUp() method of your test class, and therefore leaving your test method signature pristine &#8230;. ok, so maybe I like to fantasize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://twasink.net/blog/2005/02/dont-propagate-exceptions-in-test-fixtures/comment-page-1/#comment-90</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 10 Feb 2005 07:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://twasink.net/wp/?p=107#comment-90</guid>
		<description>Readability. My test code is a good indication of what my production code that will use the code under test will be like. If I have exceptions being thrown all over the place, then that&#039;s a problem.

As said, I don&#039;t have problems with the _production_ exceptions being on the test method. I have problems with the _test_ exceptions being on the test method,  because it means I can&#039;t see what production exceptions are coming out.

I have the same problem with methods that regularly declare they throw some base Exception (be it java.lang.Exception or a project-level Exception). You&#039;ve reduced the amount of information content in the code.
</description>
		<content:encoded><![CDATA[<p>Readability. My test code is a good indication of what my production code that will use the code under test will be like. If I have exceptions being thrown all over the place, then that&#8217;s a problem.</p>
<p>As said, I don&#8217;t have problems with the _production_ exceptions being on the test method. I have problems with the _test_ exceptions being on the test method,  because it means I can&#8217;t see what production exceptions are coming out.</p>
<p>I have the same problem with methods that regularly declare they throw some base Exception (be it java.lang.Exception or a project-level Exception). You&#8217;ve reduced the amount of information content in the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey Verkhovsky</title>
		<link>http://twasink.net/blog/2005/02/dont-propagate-exceptions-in-test-fixtures/comment-page-1/#comment-89</link>
		<dc:creator>Alexey Verkhovsky</dc:creator>
		<pubDate>Wed, 09 Feb 2005 23:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://twasink.net/wp/?p=107#comment-89</guid>
		<description>I declare all my unit tests as &quot;throws Throwable&quot;, and never catch an exception in test code except in &quot;try/fail/catch expected&quot; idiom. Live happily ever after.

Which sort of makes me curious - what value do you get from matching the throws clause of a test with the method under test?
</description>
		<content:encoded><![CDATA[<p>I declare all my unit tests as &#8220;throws Throwable&#8221;, and never catch an exception in test code except in &#8220;try/fail/catch expected&#8221; idiom. Live happily ever after.</p>
<p>Which sort of makes me curious &#8211; what value do you get from matching the throws clause of a test with the method under test?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
