ValueMetaResolver { public ValueMetaInterface getValueMeta( String fieldName ) throws PushDownOptimizationException { ValueMetaInterface valueMeta = fieldNameValueMetaMap.get( fieldName ); if ( valueMeta == null ) { throw new PushDownOptimizationException( String.format( "Field '%s' not found", fieldName ) ); } return valueMeta; } ValueMetaResolver( RowMetaInterface rowMeta ); RowMetaInterface getRowMeta(); ValueMetaInterface getValueMeta( String fieldName ); Object getTypedValue( String fieldName, int originalType, Object value ); Object[] inListToTypedObjectArray( String fieldName, String value );  }
@Test public void getValueMetaForIntField() throws KettleException { ValueMetaResolver resolver = new ValueMetaResolver( getTestRowMeta( ValueMetaInterface.TYPE_INTEGER ) ); assertEquals( ValueMetaInterface.TYPE_INTEGER, resolver.getValueMeta( "field" ).getType() ); }