Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 781 invoked from network); 28 Sep 2009 01:23:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Sep 2009 01:23:16 -0000 Received: (qmail 64838 invoked by uid 500); 28 Sep 2009 01:23:15 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 64785 invoked by uid 500); 28 Sep 2009 01:23:15 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 64776 invoked by uid 99); 28 Sep 2009 01:23:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2009 01:23:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2009 01:23:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F1567238889C; Mon, 28 Sep 2009 01:22:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r819441 - /lucene/solr/trunk/src/test/org/apache/solr/schema/TestBinaryField.java Date: Mon, 28 Sep 2009 01:22:53 -0000 To: solr-commits@lucene.apache.org From: yonik@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090928012253.F1567238889C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: yonik Date: Mon Sep 28 01:22:53 2009 New Revision: 819441 URL: http://svn.apache.org/viewvc?rev=819441&view=rev Log: tests: make TestBinaryField use generic tmp dir so it's cleaned up at the end Modified: lucene/solr/trunk/src/test/org/apache/solr/schema/TestBinaryField.java Modified: lucene/solr/trunk/src/test/org/apache/solr/schema/TestBinaryField.java URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/schema/TestBinaryField.java?rev=819441&r1=819440&r2=819441&view=diff ============================================================================== --- lucene/solr/trunk/src/test/org/apache/solr/schema/TestBinaryField.java (original) +++ lucene/solr/trunk/src/test/org/apache/solr/schema/TestBinaryField.java Mon Sep 28 01:22:53 2009 @@ -25,13 +25,14 @@ import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocumentList; import org.apache.solr.common.SolrInputDocument; +import org.apache.solr.util.AbstractSolrTestCase; import org.apache.commons.io.FileUtils; import java.nio.ByteBuffer; import java.io.File; import java.util.List; -public class TestBinaryField extends TestCase { +public class TestBinaryField extends AbstractSolrTestCase { CommonsHttpSolrServer server; JettySolrRunner jetty; @@ -39,14 +40,18 @@ static final String context = "/example"; + public String getSchemaFile() { + return null; + } + public String getSolrConfigFile() { + return null; + } + @Override public void setUp() throws Exception { super.setUp(); - String home = System.getProperty("java.io.tmpdir") - + File.separator - + getClass().getName() + "-" + System.currentTimeMillis(); - + File home = dataDir; File homeDir = new File(home, "example"); File dataDir = new File(homeDir, "data"); @@ -76,6 +81,7 @@ String url = "http://localhost:" + jetty.getLocalPort() + context; server = new CommonsHttpSolrServer(url); // server.setRequestWriter(new BinaryRequestWriter()); + super.postSetUp(); } public void testSimple() throws Exception { @@ -172,7 +178,8 @@ } - protected void tearDown() throws Exception { + public void tearDown() throws Exception { jetty.stop(); + super.tearDown(); } }