You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2010/10/19 17:59:41 UTC

svn commit: r1024300 - /lucene/dev/trunk/solr/src/test/org/apache/solr/TestPluginEnable.java

Author: yonik
Date: Tue Oct 19 15:59:41 2010
New Revision: 1024300

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

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/TestPluginEnable.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/TestPluginEnable.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/TestPluginEnable.java?rev=1024300&r1=1024299&r2=1024300&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/TestPluginEnable.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/TestPluginEnable.java Tue Oct 19 15:59:41 2010
@@ -1,32 +1,24 @@
 package org.apache.solr;
 
 import org.apache.solr.client.solrj.SolrServerException;
-import org.apache.solr.util.AbstractSolrTestCase;
-
+import org.junit.BeforeClass;
+import org.junit.Test;
 /**
  * <p> Test disabling components</p>
  *
  * @version $Id$
  * @since solr 1.4
  */
-public class TestPluginEnable extends AbstractSolrTestCase {
-
-
+public class TestPluginEnable extends SolrTestCaseJ4 {
+  @BeforeClass
+  public static void beforeClass() throws Exception {
+    initCore("solrconfig-enableplugin.xml", "schema-replication1.xml");
+  }
+  
+  @Test
   public void testSimple() throws SolrServerException {
     assertNull(h.getCore().getRequestHandler("disabled"));
     assertNotNull(h.getCore().getRequestHandler("enabled"));
 
   }
-
-
-  @Override
-  public String getSchemaFile() {
-    return "schema-replication1.xml";
-  }
-
-  @Override
-  public String getSolrConfigFile() {
-    return "solrconfig-enableplugin.xml";
-  }
-
 }