<?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: Groovy closures make unit testing with &#8220;soft asserts&#8221; simple</title>
	<atom:link href="http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/feed/" rel="self" type="application/rss+xml" />
	<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/</link>
	<description>Groovy, Grails and OS X tips and tricks</description>
	<lastBuildDate>Thu, 17 May 2012 00:35:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: tednaleid</title>
		<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/comment-page-1/#comment-2962</link>
		<dc:creator>tednaleid</dc:creator>
		<pubDate>Tue, 01 Feb 2011 22:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=58#comment-2962</guid>
		<description>@Richard you&#039;re using the language keyword &quot;assert&quot;, it&#039;s not a method call and isn&#039;t intercepted by groovy&#039;s metaclass stuff.  If you rewrite it with assertEquals instead of just assert it should work as expected.

Keywords (such as assert, if, for, while, etc) aren&#039;t methods so groovy can&#039;t intercept them.  When they&#039;re compiled into byte code, they look totally different from method calls (like assertEquals).</description>
		<content:encoded><![CDATA[<p>@Richard you&#8217;re using the language keyword &#8220;assert&#8221;, it&#8217;s not a method call and isn&#8217;t intercepted by groovy&#8217;s metaclass stuff.  If you rewrite it with assertEquals instead of just assert it should work as expected.</p>
<p>Keywords (such as assert, if, for, while, etc) aren&#8217;t methods so groovy can&#8217;t intercept them.  When they&#8217;re compiled into byte code, they look totally different from method calls (like assertEquals).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/comment-page-1/#comment-2961</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 01 Feb 2011 18:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=58#comment-2961</guid>
		<description>This doesn&#039;t seem to work in Groovy 1.7 (with power asserts).  Should it work?  For me I only get the first assert failure.

Example:

softAsserts {
 assert 1==2
 assert 2==3
}

Yields:

Assertion failed:

assert 1 == 2
               &#124;
               false</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t seem to work in Groovy 1.7 (with power asserts).  Should it work?  For me I only get the first assert failure.</p>
<p>Example:</p>
<p>softAsserts {<br />
 assert 1==2<br />
 assert 2==3<br />
}</p>
<p>Yields:</p>
<p>Assertion failed:</p>
<p>assert 1 == 2<br />
               |<br />
               false</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Bohlen</title>
		<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/comment-page-1/#comment-1720</link>
		<dc:creator>Matthias Bohlen</dc:creator>
		<pubDate>Tue, 04 Aug 2009 07:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=58#comment-1720</guid>
		<description>Ted, this is a very good post! Easy to understand and introduces a very helpful feature. Thank you for writing it.
Matthias</description>
		<content:encoded><![CDATA[<p>Ted, this is a very good post! Easy to understand and introduces a very helpful feature. Thank you for writing it.<br />
Matthias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Bohlens Blog</title>
		<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/comment-page-1/#comment-1719</link>
		<dc:creator>Matthias Bohlens Blog</dc:creator>
		<pubDate>Tue, 04 Aug 2009 07:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=58#comment-1719</guid>
		<description>[...] Naleid hat einen guten Artikel über Unit-Testing mit Soft Assertions geschrieben.     Von Matthias Bohlen, 4. August 2009, 08:19 [...]</description>
		<content:encoded><![CDATA[<p>[...] Naleid hat einen guten Artikel über Unit-Testing mit Soft Assertions geschrieben.     Von Matthias Bohlen, 4. August 2009, 08:19 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted Naleid &#187; Modularizing Groovy Config Files With a Dash of Meta-Programming</title>
		<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/comment-page-1/#comment-1686</link>
		<dc:creator>Ted Naleid &#187; Modularizing Groovy Config Files With a Dash of Meta-Programming</dc:creator>
		<pubDate>Fri, 31 Jul 2009 04:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=58#comment-1686</guid>
		<description>[...] is a continuation of a sporadic set of blog posts about some practical uses for groovy [...]</description>
		<content:encoded><![CDATA[<p>[...] is a continuation of a sporadic set of blog posts about some practical uses for groovy [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kartik Shah</title>
		<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/comment-page-1/#comment-1492</link>
		<dc:creator>Kartik Shah</dc:creator>
		<pubDate>Wed, 01 Jul 2009 18:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=58#comment-1492</guid>
		<description>Extremely helpful. Thanks for writing this blog entry.</description>
		<content:encoded><![CDATA[<p>Extremely helpful. Thanks for writing this blog entry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hamlet D'Arcy</title>
		<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/comment-page-1/#comment-1466</link>
		<dc:creator>Hamlet D'Arcy</dc:creator>
		<pubDate>Fri, 26 Jun 2009 18:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=58#comment-1466</guid>
		<description>Very nice explanation of Closure owners!</description>
		<content:encoded><![CDATA[<p>Very nice explanation of Closure owners!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://naleid.com/blog/2009/06/25/groovy-closures-make-unit-testing-with-soft-asserts-simple/comment-page-1/#comment-1462</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Fri, 26 Jun 2009 06:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=58#comment-1462</guid>
		<description>Great hint!</description>
		<content:encoded><![CDATA[<p>Great hint!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

