<?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: Mocking Super Calls</title>
	<atom:link href="http://blog.xebia.com/2007/06/25/mocking-super-calls/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.xebia.com/2007/06/25/mocking-super-calls/</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 20:40:47 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Steven Barendregt</title>
		<link>http://blog.xebia.com/2007/06/25/mocking-super-calls/comment-page-1/#comment-35106</link>
		<dc:creator>Steven Barendregt</dc:creator>
		<pubDate>Wed, 20 Feb 2008 17:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xebia.com/2007/06/25/mocking-super-calls/#comment-35106</guid>
		<description>The problem remains that in the end you are still not sure if the CustomTree class calls the saveState method on the superclass.
Some colleague programmer could modify the line &#039;return super.saveState(context);&#039; in the CustomTree.saveSuperState method to &#039;return null;&#039; and no one (or no unit test) would notice.

You have only tested that the CustomTree.saveState method calls the new method &#039;saveSuperState&#039; on it&#039;s own instance.

I&#039;m facing the same problem now, but I don&#039;t either have a solution at the moment.</description>
		<content:encoded><![CDATA[<p>The problem remains that in the end you are still not sure if the CustomTree class calls the saveState method on the superclass.<br />
Some colleague programmer could modify the line &#8216;return super.saveState(context);&#8217; in the CustomTree.saveSuperState method to &#8216;return null;&#8217; and no one (or no unit test) would notice.</p>
<p>You have only tested that the CustomTree.saveState method calls the new method &#8217;saveSuperState&#8217; on it&#8217;s own instance.</p>
<p>I&#8217;m facing the same problem now, but I don&#8217;t either have a solution at the moment.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
