@Test public void testMapperFieldName_noNewFieldName() { MapFieldNameDescriptorImpl mapFieldNameDescriptor = new MapFieldNameDescriptorImpl(); MapperFieldName mapperFieldName = new MapperFieldName(); assertFalse("Was able to initialize!", mapperFieldName.init(null, null, "someField", null, mapFieldNameDescriptor)); }
@Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); newValue = ((MapFieldNameDescriptor)mapFieldDescriptor).getNewFieldName(); if (StringUtils.isEmpty(newValue)) { logger.fatal("Map field value is empty."); return false; } return true; }
MapperFieldName extends Mapper<LogFeederProps> { @Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); newValue = ((MapFieldNameDescriptor)mapFieldDescriptor).getNewFieldName(); if (StringUtils.isEmpty(newValue)) { logger.fatal("Map field value is empty."); return false; } return true; } }
MapperFieldName extends Mapper<LogFeederProps> { @Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); newValue = ((MapFieldNameDescriptor)mapFieldDescriptor).getNewFieldName(); if (StringUtils.isEmpty(newValue)) { logger.fatal("Map field value is empty."); return false; } return true; }  }
MapperFieldName extends Mapper<LogFeederProps> { @Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); newValue = ((MapFieldNameDescriptor)mapFieldDescriptor).getNewFieldName(); if (StringUtils.isEmpty(newValue)) { logger.fatal("Map field value 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); }
MapperFieldName extends Mapper<LogFeederProps> { @Override public boolean init(LogFeederProps logFeederProps, String inputDesc, String fieldName, String mapClassCode, MapFieldDescriptor mapFieldDescriptor) { init(inputDesc, fieldName, mapClassCode); newValue = ((MapFieldNameDescriptor)mapFieldDescriptor).getNewFieldName(); if (StringUtils.isEmpty(newValue)) { logger.fatal("Map field value 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);  }