@Test public void testMapperFieldCopy_noNewFieldName() { MapFieldCopyDescriptorImpl mapFieldCopyDescriptor = new MapFieldCopyDescriptorImpl(); MapperFieldCopy mapperFieldCopy = new MapperFieldCopy(); assertFalse("Was not able to initialize!", mapperFieldCopy.init(null, null, "someField", null, mapFieldCopyDescriptor)); }
@Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); copyName = ((MapFieldCopyDescriptor)mapFieldDescriptor).getCopyName(); if (StringUtils.isEmpty(copyName)) { logger.fatal("Map copy name is empty."); return false; } return true; }
MapperFieldCopy extends Mapper<LogFeederProps> { @Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); copyName = ((MapFieldCopyDescriptor)mapFieldDescriptor).getCopyName(); if (StringUtils.isEmpty(copyName)) { logger.fatal("Map copy name is empty."); return false; } return true; } }
MapperFieldCopy extends Mapper<LogFeederProps> { @Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); copyName = ((MapFieldCopyDescriptor)mapFieldDescriptor).getCopyName(); if (StringUtils.isEmpty(copyName)) { logger.fatal("Map copy name is empty."); return false; } return true; }  }
MapperFieldCopy extends Mapper<LogFeederProps> { @Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); copyName = ((MapFieldCopyDescriptor)mapFieldDescriptor).getCopyName(); if (StringUtils.isEmpty(copyName)) { logger.fatal("Map copy name is empty."); return false; } return true; }  @Override boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor); @Override Object apply(Map<String, Object> jsonObj, Object value); }
MapperFieldCopy extends Mapper<LogFeederProps> { @Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); copyName = ((MapFieldCopyDescriptor)mapFieldDescriptor).getCopyName(); if (StringUtils.isEmpty(copyName)) { logger.fatal("Map copy name is empty."); return false; } return true; }  @Override boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor); @Override Object apply(Map<String, Object> jsonObj, Object value);  }