mirror of https://github.com/apache/lucene.git
SOLR-133 -- moving stax implementation to XmlUpdateRequestHandler. Remove the stax derived tests.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552198 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
631a4a63f1
commit
fb559461fa
|
@ -404,12 +404,13 @@
|
|||
"update.processor.class" is the class name for the UpdateRequestProcessor. It is initalized
|
||||
only once. This can not be changed for each request.
|
||||
-->
|
||||
<requestHandler name="/update/stax" class="solr.StaxUpdateRequestHandler" >
|
||||
<requestHandler name="/update" class="solr.XmlUpdateRequestHandler" >
|
||||
<!--
|
||||
<str name="update.processor.class">org.apache.solr.handler.UpdateRequestProcessor</str>
|
||||
-->
|
||||
</requestHandler>
|
||||
<requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />
|
||||
<!-- this will be removed before solr 1.3 -->
|
||||
<requestHandler name="/update/xpp" class="solr.XppUpdateRequestHandler" />
|
||||
|
||||
<!-- CSV update handler, loaded on demand -->
|
||||
<requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy" />
|
||||
|
|
|
@ -62,9 +62,9 @@ import org.apache.solr.update.DeleteUpdateCommand;
|
|||
* </lst>
|
||||
* </requestHandler>
|
||||
*/
|
||||
public class StaxUpdateRequestHandler extends XmlUpdateRequestHandler
|
||||
public class XmlUpdateRequestHandler extends RequestHandlerBase
|
||||
{
|
||||
public static Logger log = Logger.getLogger(StaxUpdateRequestHandler.class.getName());
|
||||
public static Logger log = Logger.getLogger(XmlUpdateRequestHandler.class.getName());
|
||||
|
||||
public static final String UPDATE_PROCESSOR_FACTORY = "update.processor.factory";
|
||||
public static final String UPDATE_PROCESSOR_ARGS = "update.processor.args";
|
|
@ -1,19 +0,0 @@
|
|||
package org.apache.solr.handler;
|
||||
|
||||
import org.apache.solr.BasicFunctionalityTest;
|
||||
|
||||
/**
|
||||
* Temporary test to duplicate behavior for the StaxUpdateRequestHandler
|
||||
*
|
||||
* When the XmlUpdateRequestHandler is replaced, this should go away
|
||||
*/
|
||||
public class TestStaxUpdateHandler1 extends BasicFunctionalityTest
|
||||
{
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
h.updater = new StaxUpdateRequestHandler();
|
||||
h.updater.init( null );
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package org.apache.solr.handler;
|
||||
|
||||
import org.apache.solr.ConvertedLegacyTest;
|
||||
|
||||
/**
|
||||
* Temporary test to duplicate behavior for the StaxUpdateRequestHandler
|
||||
*
|
||||
* When the XmlUpdateRequestHandler is replaced, this should go away
|
||||
*/
|
||||
public class TestStaxUpdateHandler2 extends ConvertedLegacyTest
|
||||
{
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
h.updater = new StaxUpdateRequestHandler();
|
||||
h.updater.init( null );
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package org.apache.solr.handler;
|
||||
|
||||
import org.apache.solr.DisMaxRequestHandlerTest;
|
||||
|
||||
/**
|
||||
* Temporary test to duplicate behavior for the StaxUpdateRequestHandler
|
||||
*
|
||||
* When the XmlUpdateRequestHandler is replaced, this should go away
|
||||
*/
|
||||
public class TestStaxUpdateHandler3 extends DisMaxRequestHandlerTest
|
||||
{
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
h.updater = new StaxUpdateRequestHandler();
|
||||
h.updater.init( null );
|
||||
}
|
||||
}
|
|
@ -15,7 +15,7 @@ import org.apache.solr.common.SolrInputDocument;
|
|||
public class XmlUpdateRequestHandlerTest extends TestCase
|
||||
{
|
||||
private XMLInputFactory inputFactory = BaseXMLInputFactory.newInstance();
|
||||
protected StaxUpdateRequestHandler handler = new StaxUpdateRequestHandler();
|
||||
protected XmlUpdateRequestHandler handler = new XmlUpdateRequestHandler();
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue