Apache Lucene open-source search software
tests: convert to junit4
Yonik Seeleyed308e6630a2
diff --git a/solr/src/test/org/apache/solr/TestPluginEnable.java b/solr/src/test/org/apache/solr/TestPluginEnable.javaindex 1823c4e0969..443c462869a 100644--- a/solr/src/test/org/apache/solr/TestPluginEnable.java+++ b/solr/src/test/org/apache/solr/TestPluginEnable.java@@ -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");+ }++ @Testpublic 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";- }-}