lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r927107 - /lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java
Date Wed, 24 Mar 2010 16:14:06 GMT
Author: yonik
Date: Wed Mar 24 16:14:06 2010
New Revision: 927107

URL: http://svn.apache.org/viewvc?rev=927107&view=rev
Log:
test: don't spin up embedded core if not needed, and close jetty when done

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java?rev=927107&r1=927106&r2=927107&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java
(original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java
Wed Mar 24 16:14:06 2010
@@ -36,6 +36,8 @@ import java.util.List;
  * @since solr 1.3
  */
 public class TestSpellCheckResponse extends SolrExampleTestBase {
+  @Override public String getSchemaFile()     { return null; }
+  @Override public String getSolrConfigFile() { return null; }
 
   SolrServer server;
   JettySolrRunner jetty;
@@ -45,6 +47,7 @@ public class TestSpellCheckResponse exte
 
   static String field = "name";
 
+  @Override
   public void setUp() throws Exception {
     super.setUp();
 
@@ -55,6 +58,12 @@ public class TestSpellCheckResponse exte
     server = this.createNewSolrServer();
   }
 
+  @Override
+  public void tearDown() throws Exception {
+    jetty.stop();
+    super.tearDown();
+  }
+
   public void testSpellCheckResponse() throws Exception {
     SolrInputDocument doc = new SolrInputDocument();
     doc.setField("id", "111");



Mime
View raw message