<?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: An Intro into Test Driven Development with JUnit4</title>
	<atom:link href="http://www.turnleafdesign.com/an-intro-into-test-driven-development-with-junit4/feed" rel="self" type="application/rss+xml" />
	<link>http://www.turnleafdesign.com/an-intro-into-test-driven-development-with-junit4</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: uberVU - social comments</title>
		<link>http://www.turnleafdesign.com/an-intro-into-test-driven-development-with-junit4/comment-page-1#comment-387</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Wed, 04 Nov 2009 00:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=260#comment-387</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by TurnleafDesign: Rambling on: An Intro into Test Driven Development with JUnit4 http://www.turnleafdesign.com/?p=260...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by TurnleafDesign: Rambling on: An Intro into Test Driven Development with JUnit4 <a href="http://www.turnleafdesign.com/?p=260..." rel="nofollow">http://www.turnleafdesign.com/?p=260&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: An Intro into Test Driven Development with JUnit4 &#171; Jasper Blog</title>
		<link>http://www.turnleafdesign.com/an-intro-into-test-driven-development-with-junit4/comment-page-1#comment-372</link>
		<dc:creator>An Intro into Test Driven Development with JUnit4 &#171; Jasper Blog</dc:creator>
		<pubDate>Wed, 28 Oct 2009 08:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=260#comment-372</guid>
		<description>[...] Read more: TURNLEAF DESIGN [...]</description>
		<content:encoded><![CDATA[<p>[...] Read more: TURNLEAF DESIGN [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.turnleafdesign.com/an-intro-into-test-driven-development-with-junit4/comment-page-1#comment-370</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 27 Oct 2009 19:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=260#comment-370</guid>
		<description>Well, the @Test annotation tells you it&#039;s a test.
Extending TestCase, in addition, seems redundant  :-)

Give a little reading on &quot;Composition over inheritance&quot;.

A minor criticism, when possible try to avoid the not (!) operator in your tests.
For example, instead of:
Assert.assertTrue(!forecasts.isEmpty());
do:
Assert.assertFalse(forecasts.isEmpty());

Later, when folks are reading the code, it&#039;s really easy to miss those.</description>
		<content:encoded><![CDATA[<p>Well, the @Test annotation tells you it&#8217;s a test.<br />
Extending TestCase, in addition, seems redundant  <img src='http://www.turnleafdesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Give a little reading on &#8220;Composition over inheritance&#8221;.</p>
<p>A minor criticism, when possible try to avoid the not (!) operator in your tests.<br />
For example, instead of:<br />
Assert.assertTrue(!forecasts.isEmpty());<br />
do:<br />
Assert.assertFalse(forecasts.isEmpty());</p>
<p>Later, when folks are reading the code, it&#8217;s really easy to miss those.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Billy Korando</title>
		<link>http://www.turnleafdesign.com/an-intro-into-test-driven-development-with-junit4/comment-page-1#comment-366</link>
		<dc:creator>Billy Korando</dc:creator>
		<pubDate>Tue, 27 Oct 2009 13:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=260#comment-366</guid>
		<description>Yea I was thinking of doing a static import, but it still seems that a Junit class should import TestClass, since it is a type of test class.</description>
		<content:encoded><![CDATA[<p>Yea I was thinking of doing a static import, but it still seems that a Junit class should import TestClass, since it is a type of test class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IBBoard</title>
		<link>http://www.turnleafdesign.com/an-intro-into-test-driven-development-with-junit4/comment-page-1#comment-364</link>
		<dc:creator>IBBoard</dc:creator>
		<pubDate>Tue, 27 Oct 2009 09:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.turnleafdesign.com/?p=260#comment-364</guid>
		<description>&quot;For some dumb reason when you create a new Junit4 test class in Eclipse it does not automatically inherit TestClass. Anyways I inherit that class now so you can just do assertEquals(expected, actual) instead of Assert.assertEquals(expected, actual).&quot;

If you&#039;re using Java 1.5 or later (and why not? Generics are extremely useful) then why not just use the static imports? Go to the Eclipse preferences then Java &gt; Editor &gt; Content Assist &gt; Favorites and add &quot;junit.framework.Assert.*&quot;, then make sure &quot;Use static imports&quot; is checked in Java &gt; Editor &gt; Content Assist and Eclipse will auto-complete &quot;assertEquals&quot; for you and include the static import.

Overall it looks like an interesting start to an article, but I&#039;d probably have started TDD with something a little simpler than trying to do database connections (especially since unit tests that have a database backend are best not connecting to a database for consistency reasons - although the connector itself may be a different matter).</description>
		<content:encoded><![CDATA[<p>&#8220;For some dumb reason when you create a new Junit4 test class in Eclipse it does not automatically inherit TestClass. Anyways I inherit that class now so you can just do assertEquals(expected, actual) instead of Assert.assertEquals(expected, actual).&#8221;</p>
<p>If you&#8217;re using Java 1.5 or later (and why not? Generics are extremely useful) then why not just use the static imports? Go to the Eclipse preferences then Java &gt; Editor &gt; Content Assist &gt; Favorites and add &#8220;junit.framework.Assert.*&#8221;, then make sure &#8220;Use static imports&#8221; is checked in Java &gt; Editor &gt; Content Assist and Eclipse will auto-complete &#8220;assertEquals&#8221; for you and include the static import.</p>
<p>Overall it looks like an interesting start to an article, but I&#8217;d probably have started TDD with something a little simpler than trying to do database connections (especially since unit tests that have a database backend are best not connecting to a database for consistency reasons &#8211; although the connector itself may be a different matter).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
