@Test @SuppressWarnings("unchecked") public void testGetValue() { Row row = mock(Row.class); String resolvedValue = "resolved"; String convertedValue = "converted"; when(delegate.resolveInputValue(row)).thenReturn(resolvedValue); when(xform.transform(resolvedValue)).thenReturn(convertedValue); assertEquals(convertedValue, instance.getValue(row)); }
@Override public final T getValue(final Row row) { String strValue = resolveInputValue(row); return valueXform.transform(strValue); }
AbstractConvertingColumnValue extends AbstractColumnValue<T> { @Override public final T getValue(final Row row) { String strValue = resolveInputValue(row); return valueXform.transform(strValue); } }
AbstractConvertingColumnValue extends AbstractColumnValue<T> { @Override public final T getValue(final Row row) { String strValue = resolveInputValue(row); return valueXform.transform(strValue); } @SuppressWarnings("unchecked") protected  AbstractConvertingColumnValue(final ValueTransformer<T> xform, final String multiKey); }
AbstractConvertingColumnValue extends AbstractColumnValue<T> { @Override public final T getValue(final Row row) { String strValue = resolveInputValue(row); return valueXform.transform(strValue); } @SuppressWarnings("unchecked") protected  AbstractConvertingColumnValue(final ValueTransformer<T> xform, final String multiKey); @Override final T getValue(final Row row); @JsonProperty("xform") final ValueTransformer<T> getValueXform(); }
AbstractConvertingColumnValue extends AbstractColumnValue<T> { @Override public final T getValue(final Row row) { String strValue = resolveInputValue(row); return valueXform.transform(strValue); } @SuppressWarnings("unchecked") protected  AbstractConvertingColumnValue(final ValueTransformer<T> xform, final String multiKey); @Override final T getValue(final Row row); @JsonProperty("xform") final ValueTransformer<T> getValueXform();  }