<?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: JUnit recipes: Work around static attributes in classes</title>
	<atom:link href="http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 22:39:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: himanshu</title>
		<link>http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/comment-page-1/#comment-41834</link>
		<dc:creator>himanshu</dc:creator>
		<pubDate>Fri, 30 Nov 2007 12:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-41834</guid>
		<description>Thnks for your comment.
I have to work around with Legacy Code a lot. Client usually do not allow us to change the design. So sometime I have to use stubbed classes or jMockit.</description>
		<content:encoded><![CDATA[<p>Thnks for your comment.<br />
I have to work around with Legacy Code a lot. Client usually do not allow us to change the design. So sometime I have to use stubbed classes or jMockit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/comment-page-1/#comment-32889</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Wed, 03 Oct 2007 16:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-32889</guid>
		<description>Thinking about that again, as Qrilka said, the problem (in this case) arises from interfaces depending on classes. So interfaces should only depend on other interfaces, not on concrete classes.</description>
		<content:encoded><![CDATA[<p>Thinking about that again, as Qrilka said, the problem (in this case) arises from interfaces depending on classes. So interfaces should only depend on other interfaces, not on concrete classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/comment-page-1/#comment-29846</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Sun, 26 Aug 2007 09:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29846</guid>
		<description>@Qrilka: Yes you&#039;re right. I most often use interfaces instead of classes, but this was legacy code which couldn&#039;t easily be changed.

But although most people would use interfaces for services (storage, view), I seldom see people using interfaces for business objects like Person.</description>
		<content:encoded><![CDATA[<p>@Qrilka: Yes you&#8217;re right. I most often use interfaces instead of classes, but this was legacy code which couldn&#8217;t easily be changed.</p>
<p>But although most people would use interfaces for services (storage, view), I seldom see people using interfaces for business objects like Person.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qrilka</title>
		<link>http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/comment-page-1/#comment-29842</link>
		<dc:creator>Qrilka</dc:creator>
		<pubDate>Sun, 26 Aug 2007 09:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29842</guid>
		<description>I think the problem is in using concrete classes not interfaces. So If Person would be just an interface you won&#039;t have such situation. Concrete classes enlarge code coherence and create problems like the one you&#039;ve mentioned.</description>
		<content:encoded><![CDATA[<p>I think the problem is in using concrete classes not interfaces. So If Person would be just an interface you won&#8217;t have such situation. Concrete classes enlarge code coherence and create problems like the one you&#8217;ve mentioned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/comment-page-1/#comment-29759</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Fri, 24 Aug 2007 16:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29759</guid>
		<description>@Thomas: The names have been changed to protect the innocent :-)

But as a side node, I&#039;ve been moving further and further away from OO to a data holder object and service programming style. Any business logik inside of objects looks now suspicious to me. I think services like AgeCalculator are much more versatile and exchangable.</description>
		<content:encoded><![CDATA[<p>@Thomas: The names have been changed to protect the innocent :-)</p>
<p>But as a side node, I&#8217;ve been moving further and further away from OO to a data holder object and service programming style. Any business logik inside of objects looks now suspicious to me. I think services like AgeCalculator are much more versatile and exchangable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Hawk</title>
		<link>http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/comment-page-1/#comment-29758</link>
		<dc:creator>Thomas Hawk</dc:creator>
		<pubDate>Fri, 24 Aug 2007 16:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29758</guid>
		<description>I am curious as to why you need an AgeCalculator class with a calculateAge method.  I, of course, am not familiar with your code, but it seems to me calculateAge should be a method in the Person class.</description>
		<content:encoded><![CDATA[<p>I am curious as to why you need an AgeCalculator class with a calculateAge method.  I, of course, am not familiar with your code, but it seems to me calculateAge should be a method in the Person class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Disco Blog &#187; Blog Archive &#187; The weekly bag&#8211; August 24</title>
		<link>http://codemonkeyism.com/junit-recipes-work-around-static-attributes-in-classes/comment-page-1/#comment-29754</link>
		<dc:creator>The Disco Blog &#187; Blog Archive &#187; The weekly bag&#8211; August 24</dc:creator>
		<pubDate>Fri, 24 Aug 2007 14:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29754</guid>
		<description>[...] JUnit recipes: Work around static attributes in classes- Some hip advice here. [...]</description>
		<content:encoded><![CDATA[<p>[...] JUnit recipes: Work around static attributes in classes- Some hip advice here. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 3/12 queries in 0.006 seconds using disk
Object Caching 320/320 objects using disk

Served from: codemonkeyism.com @ 2012-05-21 17:31:25 -->
