<?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: TestSetup and evil static methods</title>
	<atom:link href="http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/</link>
	<description>Thoughts about software development</description>
	<lastBuildDate>Wed, 08 Sep 2010 15:33:13 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cedric</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1915</link>
		<dc:creator>Cedric</dc:creator>
		<pubDate>Tue, 16 Feb 2010 00:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1915</guid>
		<description>Hi John,

I just downloaded and tested the file and it looks fine:

No errors detected in compressed data of /Users/cbeust/Downloads/testng-5.11.zip.</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>I just downloaded and tested the file and it looks fine:</p>
<p>No errors detected in compressed data of /Users/cbeust/Downloads/testng-5.11.zip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1914</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 15 Feb 2010 21:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1914</guid>
		<description>It looks like the download for testNG-5.11 is corrupt. When I download and then try to unzip, errors are reported stating that the zip file is corrupt. Previous versions 5.9,5.8 are not corrupt and can be downloaded and unzipped ok. The link I&#039;m using is http://testng.org

Has anyone experienced the same?</description>
		<content:encoded><![CDATA[<p>It looks like the download for testNG-5.11 is corrupt. When I download and then try to unzip, errors are reported stating that the zip file is corrupt. Previous versions 5.9,5.8 are not corrupt and can be downloaded and unzipped ok. The link I&#8217;m using is <a href="http://testng.org" rel="nofollow">http://testng.org</a></p>
<p>Has anyone experienced the same?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rashid</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1913</link>
		<dc:creator>Rashid</dc:creator>
		<pubDate>Fri, 07 Nov 2008 14:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1913</guid>
		<description>I&#039;ve just downloaded Test NG on my system - vista OS, but I cannot locate the executable file to run the application, albeit I&#039;ve extracted the folders from the zip file. What I&#039;m I doing wrong?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just downloaded Test NG on my system &#8211; vista OS, but I cannot locate the executable file to run the application, albeit I&#8217;ve extracted the folders from the zip file. What I&#8217;m I doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiborgov</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1912</link>
		<dc:creator>Kiborgov</dc:creator>
		<pubDate>Mon, 03 Sep 2007 07:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1912</guid>
		<description>Hi all!
Welcome to my homepage. http://xenoid12.atwiki.com/
my page [url=http://xenoid12.atwiki.com/]my page[/url]
bye =)</description>
		<content:encoded><![CDATA[<p>Hi all!<br />
Welcome to my homepage. <a href="http://xenoid12.atwiki.com/" rel="nofollow">http://xenoid12.atwiki.com/</a><br />
my page [url=http://xenoid12.atwiki.com/]my page[/url]<br />
bye =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Kress</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1911</link>
		<dc:creator>Bill Kress</dc:creator>
		<pubDate>Fri, 02 Dec 2005 14:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1911</guid>
		<description>Ben, it decreases coupling (kinda) because classes don&#039;t have to store references to each other if they are only using static methods.
I&#039;m not sure if that is exactly what I&#039;d term &quot;Coupling&quot;, since you are still tied to the static methods&#039; signature but I think that&#039;s what he was getting at.
I suppose what he might have actually been refering to is the fact that if you don&#039;t have a reference to the class and need one, you might have to start looking for methods in classes you do have that supply that object, and using that reference would couple you closer to the intermediate class.
Oh, and Rob, I recommend not doing the singleton thing.  Although it looks promising, you are making an assumption that you will never need two of what that singleton is supplying.
That always seems to sound good, but for me seems to fail later.  For instance, number of monitors, number of keyboards, a ram cache for a DB (found that I needed to flush one set of data and not another) A &quot;Main&quot; window in my java program, ...
I&#039;m not saying it&#039;s not tempting and often useful, but I&#039;d have saved myself a lot of time (in many cases) if I had just created an instance and passed it around rather than using a singleton, because that&#039;s a bitch of a refactor.</description>
		<content:encoded><![CDATA[<p>Ben, it decreases coupling (kinda) because classes don&#8217;t have to store references to each other if they are only using static methods.<br />
I&#8217;m not sure if that is exactly what I&#8217;d term &#8220;Coupling&#8221;, since you are still tied to the static methods&#8217; signature but I think that&#8217;s what he was getting at.<br />
I suppose what he might have actually been refering to is the fact that if you don&#8217;t have a reference to the class and need one, you might have to start looking for methods in classes you do have that supply that object, and using that reference would couple you closer to the intermediate class.<br />
Oh, and Rob, I recommend not doing the singleton thing.  Although it looks promising, you are making an assumption that you will never need two of what that singleton is supplying.<br />
That always seems to sound good, but for me seems to fail later.  For instance, number of monitors, number of keyboards, a ram cache for a DB (found that I needed to flush one set of data and not another) A &#8220;Main&#8221; window in my java program, &#8230;<br />
I&#8217;m not saying it&#8217;s not tempting and often useful, but I&#8217;d have saved myself a lot of time (in many cases) if I had just created an instance and passed it around rather than using a singleton, because that&#8217;s a bitch of a refactor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robspassky</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1910</link>
		<dc:creator>robspassky</dc:creator>
		<pubDate>Wed, 23 Nov 2005 11:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1910</guid>
		<description>I may be missing something, but what&#039;s to stop you from creating a Singleton to hold your &quot;static&quot; initialization stuff?  There may be multiple calls to &quot;setup&quot;, but of course the Singleton will only be initialized once.</description>
		<content:encoded><![CDATA[<p>I may be missing something, but what&#8217;s to stop you from creating a Singleton to hold your &#8220;static&#8221; initialization stuff?  There may be multiple calls to &#8220;setup&#8221;, but of course the Singleton will only be initialized once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Hogan</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1909</link>
		<dc:creator>Ben Hogan</dc:creator>
		<pubDate>Mon, 06 Sep 2004 06:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1909</guid>
		<description>You say:
&gt; I don&#039;t have anything against static methods in general, I tend to use them as much as possible whenever they don&#039;t need access to any non-static fields since it decreases the coupling between my classes.
How does this decrease coupling between classes?
Ben
http://geekbeers.blogspot.com/</description>
		<content:encoded><![CDATA[<p>You say:<br />
> I don&#8217;t have anything against static methods in general, I tend to use them as much as possible whenever they don&#8217;t need access to any non-static fields since it decreases the coupling between my classes.<br />
How does this decrease coupling between classes?<br />
Ben<br />
<a href="http://geekbeers.blogspot.com/" rel="nofollow">http://geekbeers.blogspot.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1908</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 27 Aug 2004 06:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1908</guid>
		<description>JUnit is not forcing you to use static methods at all. In the example quoted above, you could simply move the start method into the TestSetup class.</description>
		<content:encoded><![CDATA[<p>JUnit is not forcing you to use static methods at all. In the example quoted above, you could simply move the start method into the TestSetup class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roger Rustin</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1907</link>
		<dc:creator>Roger Rustin</dc:creator>
		<pubDate>Wed, 25 Aug 2004 23:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1907</guid>
		<description>It might sound stupid but I am trying to learn here. YOu mentioned that the reuse of the same JVM will cause problem since the class is using static variable. Could you please elaborate on that? Why would the code break?</description>
		<content:encoded><![CDATA[<p>It might sound stupid but I am trying to learn here. YOu mentioned that the reuse of the same JVM will cause problem since the class is using static variable. Could you please elaborate on that? Why would the code break?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roger Rustin</title>
		<link>http://beust.com/weblog/2004/08/25/testsetup-and-evil-static-methods/comment-page-1/#comment-1906</link>
		<dc:creator>Roger Rustin</dc:creator>
		<pubDate>Wed, 25 Aug 2004 23:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://beust.com/weblog/?p=187#comment-1906</guid>
		<description>It might sound stupid but I am trying to learn here. YOu mentioned that the reuse of the same JVM will cause problem since the class is using static variable. Could you please elaborate on that? Why would the code break?</description>
		<content:encoded><![CDATA[<p>It might sound stupid but I am trying to learn here. YOu mentioned that the reuse of the same JVM will cause problem since the class is using static variable. Could you please elaborate on that? Why would the code break?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
