<?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: The Power of Unit Testing</title>
	<atom:link href="http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Sun, 12 Feb 2012 05:23:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ambreen</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-11153</link>
		<dc:creator>ambreen</dc:creator>
		<pubDate>Sat, 05 Sep 2009 08:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-11153</guid>
		<description>wow..great help....as i was having the same problem like that of seema...thanks to both of you</description>
		<content:encoded><![CDATA[<p>wow..great help&#8230;.as i was having the same problem like that of seema&#8230;thanks to both of you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Haleby</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-7249</link>
		<dc:creator>Johan Haleby</dc:creator>
		<pubDate>Thu, 02 Jul 2009 11:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-7249</guid>
		<description>Seema, you&#039;re probably not preparing the correct classes for test using the PrepareForTest annotation. You must prepare the class containing the private method that you want to mock. Have a look at the examples in the documentation at www.powermock.org.</description>
		<content:encoded><![CDATA[<p>Seema, you&#8217;re probably not preparing the correct classes for test using the PrepareForTest annotation. You must prepare the class containing the private method that you want to mock. Have a look at the examples in the documentation at <a href="http://www.powermock.org" rel="nofollow">http://www.powermock.org</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulrik Sandberg</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-6193</link>
		<dc:creator>Ulrik Sandberg</dc:creator>
		<pubDate>Mon, 08 Jun 2009 14:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-6193</guid>
		<description>I think you should report an issue &lt;a href=&quot;http://code.google.com/p/powermock/issues/list&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; and discuss this further with the PowerMock guys.</description>
		<content:encoded><![CDATA[<p>I think you should report an issue <a href="http://code.google.com/p/powermock/issues/list" rel="nofollow">here</a> and discuss this further with the PowerMock guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seema</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-6186</link>
		<dc:creator>seema</dc:creator>
		<pubDate>Mon, 08 Jun 2009 10:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-6186</guid>
		<description>Yes, i have been using java5 with powermock and junit3. However when i am creating a mock object and using expectPrivate() to test the private method, why is that the actual method gets invoked? As far as i know, creation of a mock will simulate the method to be tested and will not invoke the actual method. Please help me with your feedback.</description>
		<content:encoded><![CDATA[<p>Yes, i have been using java5 with powermock and junit3. However when i am creating a mock object and using expectPrivate() to test the private method, why is that the actual method gets invoked? As far as i know, creation of a mock will simulate the method to be tested and will not invoke the actual method. Please help me with your feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulrik Sandberg</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-6102</link>
		<dc:creator>Ulrik Sandberg</dc:creator>
		<pubDate>Fri, 05 Jun 2009 23:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-6102</guid>
		<description>If you are OK with the private methods being run as well, then simply call the public method in your test. However, if you want to stub out some or all of the private methods, you have a few options. You could change the access modifier of the private methods that you want to stub out to package private, and then override them in a subclass, which you then test instead of the original class. Or, if you run Java5 or higher, you could use &lt;a href=&quot;http://blog.jayway.com/2008/11/21/powermock-10-released/&quot; rel=&quot;nofollow&quot;&gt;PowerMock&lt;/a&gt; to mock any private methods you want.</description>
		<content:encoded><![CDATA[<p>If you are OK with the private methods being run as well, then simply call the public method in your test. However, if you want to stub out some or all of the private methods, you have a few options. You could change the access modifier of the private methods that you want to stub out to package private, and then override them in a subclass, which you then test instead of the original class. Or, if you run Java5 or higher, you could use <a href="http://blog.jayway.com/2008/11/21/powermock-10-released/" rel="nofollow">PowerMock</a> to mock any private methods you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seema</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-6073</link>
		<dc:creator>seema</dc:creator>
		<pubDate>Fri, 05 Jun 2009 06:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-6073</guid>
		<description>Nice article... Is there a way to test a public method that contains more than one private methods in it??</description>
		<content:encoded><![CDATA[<p>Nice article&#8230; Is there a way to test a public method that contains more than one private methods in it??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Kronquist</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-5817</link>
		<dc:creator>Jan Kronquist</dc:creator>
		<pubDate>Tue, 02 Jun 2009 05:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-5817</guid>
		<description>Nice! This is why unit testing is so addictive! 

You probably also want to add validation to the setArticleNumber that the number actually have the correct format, ie 8 digits. And maybe even refactor out the ArticleNumber into its own class, DDD style?</description>
		<content:encoded><![CDATA[<p>Nice! This is why unit testing is so addictive! </p>
<p>You probably also want to add validation to the setArticleNumber that the number actually have the correct format, ie 8 digits. And maybe even refactor out the ArticleNumber into its own class, DDD style?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jignesh Dhua</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-5277</link>
		<dc:creator>Jignesh Dhua</dc:creator>
		<pubDate>Tue, 26 May 2009 04:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-5277</guid>
		<description>Good.. Nice Article..

-jigs4all</description>
		<content:encoded><![CDATA[<p>Good.. Nice Article..</p>
<p>-jigs4all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blog.jayway.com/2009/05/21/the-power-of-unit-testing/comment-page-1/#comment-5134</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 23 May 2009 21:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1761#comment-5134</guid>
		<description>Hi, nice posts there :-) thank&#039;s for the interesting information</description>
		<content:encoded><![CDATA[<p>Hi, nice posts there <img src='http://blog.jayway.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  thank&#8217;s for the interesting information</p>
]]></content:encoded>
	</item>
</channel>
</rss>

