SEARCH-75, Port and fixed AlfrescoReRankQParserPluginTest

This commit is contained in:
Michael Suzuki
2016-06-22 11:14:54 +01:00
parent 1ab3ae7ab3
commit 567149949f
2 changed files with 667 additions and 660 deletions

View File

@@ -65,6 +65,7 @@ import org.apache.solr.util.BaseTestHarness;
import org.apache.solr.util.RefCounted;
import org.apache.solr.util.TestHarness;
import org.apache.solr.util.TestHarness.TestCoresLocator;
import org.junit.AfterClass;
import org.junit.Assert;
import org.xml.sax.SAXException;
@@ -156,6 +157,7 @@ public abstract class AbstractAlfrescoSolrTests implements SolrTestFiles, Alfre
.setUseSchemaCache(false)
.setCoreAdminHandlerClass("org.alfresco.solr.AlfrescoCoreAdminHandler")
.build();
coreContainer.shutdown();
try
{
h = new TestHarness(nodeConfig, locator);
@@ -168,9 +170,12 @@ public abstract class AbstractAlfrescoSolrTests implements SolrTestFiles, Alfre
lrf = h.getRequestFactory
("standard",0,20, CommonParams.VERSION,"2.2");
}
//
// coreContainer.shutdown();
}
@AfterClass
public static void tearDown()
{
solrConfig = null;
h.close();
}
/**
* Generates a <delete>... XML string for an query