use of com.yahoo.docproc.DocumentProcessingAbstractTestCase.TestDocumentProcessor1 in project vespa by vespa-engine.
the class SchemaMappingAndAccessesTest method testSchemaMapNoDocType.
public void testSchemaMapNoDocType() {
SchemaMap map = new SchemaMap(null);
map.addMapping("mychain", "com.yahoo.MyDocProc", null, "inDoc1", "inProc1");
map.addMapping("mychain", "com.yahoo.MyDocProc", null, "inDoc2", "inProc2");
Map<Pair<String, String>, String> cMap = map.chainMap("mychain", "com.yahoo.MyDocProc");
DocumentProcessor proc = new TestDocumentProcessor1();
proc.setFieldMap(cMap);
Map<String, String> dMap = proc.getDocMap("mydoctype");
assertEquals("inDoc1", dMap.get("inProc1"));
assertEquals("inDoc2", dMap.get("inProc2"));
}
Aggregations