<?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: Pitfalls of Exception expectations in JsUnit</title>
	<atom:link href="http://blog.caplin.com/2010/01/29/pitfalls-of-exception-expectations-in-jsunit/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.caplin.com/2010/01/29/pitfalls-of-exception-expectations-in-jsunit/</link>
	<description>Single Dealer Platforms, Industry Expertise</description>
	<lastBuildDate>Thu, 02 Feb 2012 04:16:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ian Alderson</title>
		<link>http://blog.caplin.com/2010/01/29/pitfalls-of-exception-expectations-in-jsunit/comment-page-1/#comment-213</link>
		<dc:creator>Ian Alderson</dc:creator>
		<pubDate>Tue, 02 Feb 2010 09:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.caplin.com/?p=1084#comment-213</guid>
		<description>This is a good point, and is indeed one of the approaches seen in our test code. This wouldn&#039;t help if the particular error message contained variable values that were inserted via tokens, however this argument only covers a subset of the exception cases.</description>
		<content:encoded><![CDATA[<p>This is a good point, and is indeed one of the approaches seen in our test code. This wouldn&#8217;t help if the particular error message contained variable values that were inserted via tokens, however this argument only covers a subset of the exception cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Iley</title>
		<link>http://blog.caplin.com/2010/01/29/pitfalls-of-exception-expectations-in-jsunit/comment-page-1/#comment-174</link>
		<dc:creator>Adam Iley</dc:creator>
		<pubDate>Fri, 29 Jan 2010 14:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.caplin.com/?p=1084#comment-174</guid>
		<description>&gt; This particular approach has been met with trepidation from some of our developers who are concerned that verification of exceptions will lead to fragile test code, prone to break if someone changes the text within an exception

One way around this is to store the error message in a string on the class which can be then refered to both in the throw in the code, and the assert in the test.</description>
		<content:encoded><![CDATA[<p>&gt; This particular approach has been met with trepidation from some of our developers who are concerned that verification of exceptions will lead to fragile test code, prone to break if someone changes the text within an exception</p>
<p>One way around this is to store the error message in a string on the class which can be then refered to both in the throw in the code, and the assert in the test.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

