SOLR-9565: missed updating the testcase

This commit is contained in:
Noble Paul 2017-06-17 00:55:10 +09:30
parent 68d29c9b4f
commit e2d8f941e1
1 changed files with 4 additions and 4 deletions

View File

@ -47,10 +47,10 @@ public class UpdateRequestProcessorFactoryTest extends AbstractSolrTestCase {
public void testRequestTimeUrp(){
SolrCore core = h.getCore();
ModifiableSolrParams params = new ModifiableSolrParams()
.add("processor", "Template")
.add("Template.field", "id_t:${firstName}_${lastName}")
.add("Template.field", "another_t:${lastName}_${firstName}")
.add("Template.field", "missing_t:${lastName}_${unKnown}");
.add("processor", "template")
.add("template.field", "id_t:{firstName}_{lastName}")
.add("template.field", "another_t:{lastName}_{firstName}")
.add("template.field", "missing_t:{lastName}_{unKnown}");
UpdateRequestProcessorChain chain = core.getUpdateProcessorChain(params);
List<UpdateRequestProcessorFactory> l = chain.getProcessors();
assertTrue(l.get(0) instanceof TemplateUpdateProcessorFactory);