KettleValidatorException assertNumeric( ValueMetaInterface valueMeta,
                                          Object valueData,
                                          Validation field ) throws KettleValueException {
    if ( valueMeta.isNumeric() || containsOnlyDigits( valueMeta.getString( valueData ) ) ) {
      return null;
    }
    return new KettleValidatorException( this, field, KettleValidatorException.ERROR_NON_NUMERIC_DATA,
      BaseMessages.getString( PKG, "Validator.Exception.NonNumericDataNotAllowed", field.getFieldName(),
        valueMeta.toStringMeta(), valueMeta.getString( valueData ) ), field.getFieldName() );
  }
@Test
  public void assertNumeric_StringWithDigits() throws Exception {
    ValueMetaString metaString = new ValueMetaString( "string-with-digits" );
    assertNull( "Strings with digits are allowed", validator.assertNumeric( metaString, "123", new Validation() ) );
  }