lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r927657 - /lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java
Date Fri, 26 Mar 2010 00:54:00 GMT
Author: yonik
Date: Fri Mar 26 00:53:59 2010
New Revision: 927657

URL: http://svn.apache.org/viewvc?rev=927657&view=rev
Log:
tests: convert jetty/examples to junit4

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

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java?rev=927657&r1=927656&r2=927657&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java
(original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java
Fri Mar 26 00:53:59 2010
@@ -19,6 +19,7 @@ package org.apache.solr.client.solrj.res
 import java.util.List;
 import junit.framework.Assert;
 
+import org.apache.solr.client.solrj.SolrJettyTestBase;
 import org.apache.solr.client.solrj.SolrQuery;
 import org.apache.solr.client.solrj.SolrServer;
 import org.apache.solr.common.SolrInputDocument;
@@ -26,30 +27,20 @@ import org.apache.solr.client.solrj.Solr
 import org.apache.solr.client.solrj.request.QueryRequest;
 import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
 import org.apache.solr.client.solrj.response.TermsResponse.Term;
+import org.junit.BeforeClass;
+import org.junit.Test;
 
 /**
  * Test for TermComponent's response in Solrj
  */
-public class TermsResponseTest extends SolrExampleTestBase {
+public class TermsResponseTest extends SolrJettyTestBase {
 
-  SolrServer server;
-
-  @Override 
-  public void setUp() throws Exception {
-    super.setUp();
-    server = createNewSolrServer();
-  }
-
-  @Override
-  protected SolrServer getSolrServer() {
-    return server;
-  }
-
-  @Override
-  protected SolrServer createNewSolrServer() {
-    return new EmbeddedSolrServer(h.getCoreContainer(), "");
+  @BeforeClass
+  public static void beforeTest() throws Exception {
+    initCore(EXAMPLE_CONFIG, EXAMPLE_SCHEMA, EXAMPLE_HOME);
   }
 
+  @Test
   public void testTermsResponse() throws Exception {
     SolrInputDocument doc = new SolrInputDocument();
     doc.setField("id", 1);



Mime
View raw message