<?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: Using Solr&#8217;s AbstractSolrTestCase</title>
	<atom:link href="http://lucasjosh.com/blog/2009/06/28/using-solrs-abstractsolrtestcase/feed/" rel="self" type="application/rss+xml" />
	<link>http://lucasjosh.com/blog/2009/06/28/using-solrs-abstractsolrtestcase/</link>
	<description></description>
	<lastBuildDate>Sat, 02 Jan 2010 17:56:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: josh</title>
		<link>http://lucasjosh.com/blog/2009/06/28/using-solrs-abstractsolrtestcase/comment-page-1/#comment-736</link>
		<dc:creator>josh</dc:creator>
		<pubDate>Tue, 30 Jun 2009 07:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://lucasjosh.com/blog/?p=270#comment-736</guid>
		<description>Hoss -

Thanks for the comment!  I can totally see that I&#039;m not necessarily using the test case in its most pure form but the good news is that it is helping our developers write more tests and that&#039;s definitely a good thing!

I&#039;ll take a look at the code and see if I can produce a patch that&#039;ll work.  

Thanks again!</description>
		<content:encoded><![CDATA[<p>Hoss -</p>
<p>Thanks for the comment!  I can totally see that I&#8217;m not necessarily using the test case in its most pure form but the good news is that it is helping our developers write more tests and that&#8217;s definitely a good thing!</p>
<p>I&#8217;ll take a look at the code and see if I can produce a patch that&#8217;ll work.  </p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hoss</title>
		<link>http://lucasjosh.com/blog/2009/06/28/using-solrs-abstractsolrtestcase/comment-page-1/#comment-735</link>
		<dc:creator>Hoss</dc:creator>
		<pubDate>Tue, 30 Jun 2009 06:51:26 +0000</pubDate>
		<guid isPermaLink="false">http://lucasjosh.com/blog/?p=270#comment-735</guid>
		<description>The abstract test case was really designed to be a base for *Solr* tests, or Solr plugins -- hence the purity of a clean data dir before every test is run.  As you say: mocking is definitely the way to go if you want to test the interaction of external systems with Solr (no need to even have Solr running, let alone running inside the actual test case, or with a particular index.)

That said: a patch to refactor a new &quot;getDataDir()&quot; method out of setUp so that subclasses could override should be fairly trivial if you&#039;d like to submit one.  I don&#039;t have the code in front of me, but I think it would even be fairly easy to make it so that if a subclass overrides getDataDir() to return null, then the dataDir from the solrconfig.xml file will be used (just like in a production instance)</description>
		<content:encoded><![CDATA[<p>The abstract test case was really designed to be a base for *Solr* tests, or Solr plugins &#8212; hence the purity of a clean data dir before every test is run.  As you say: mocking is definitely the way to go if you want to test the interaction of external systems with Solr (no need to even have Solr running, let alone running inside the actual test case, or with a particular index.)</p>
<p>That said: a patch to refactor a new &#8220;getDataDir()&#8221; method out of setUp so that subclasses could override should be fairly trivial if you&#8217;d like to submit one.  I don&#8217;t have the code in front of me, but I think it would even be fairly easy to make it so that if a subclass overrides getDataDir() to return null, then the dataDir from the solrconfig.xml file will be used (just like in a production instance)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
