コード例 #1
0
  public TestScriptBasedMapping() {
    mapping = new ScriptBasedMapping();

    conf = new Configuration();
    conf.setInt(ScriptBasedMapping.SCRIPT_ARG_COUNT_KEY, ScriptBasedMapping.MIN_ALLOWABLE_ARGS - 1);
    conf.set(ScriptBasedMapping.SCRIPT_FILENAME_KEY, "any-filename");

    mapping.setConf(conf);
  }
コード例 #2
0
 /**
  * {@inheritDoc}
  *
  * <p>This will get called in the superclass constructor, so a check is needed to ensure that the
  * raw mapping is defined before trying to relaying a null configuration.
  *
  * @param conf
  */
 @Override
 public void setConf(Configuration conf) {
   super.setConf(conf);
   getRawMapping().setConf(conf);
 }