Sha256: c1e1f53cd792a255de69a7bbded78b246c56d953f3df8be512506f765a03223e
Contents?: true
Size: 1015 Bytes
Versions: 4
Compression:
Stored size: 1015 Bytes
Contents
package org.embulk.output.kintone; import org.embulk.config.ConfigSource; import org.junit.Before; public class TestTask extends TestKintoneOutputPlugin { private ConfigSource config; @Before public void before() { config = fromYamlString("{}"); } @Override protected ConfigSource loadConfigYaml(String name) { ConfigSource config = super.loadConfigYaml("task/config.yml"); return config.merge(loadYamlResource(name)).merge(this.config); } protected void merge(ConfigSource config) { this.config.merge(config); } protected void runOutput() throws Exception { String test = config.get(String.class, "domain"); runOutput(getConfigName(test), getInputName(test)); } private String getConfigName(String test) { return getName(test, getConfigName()); } private String getInputName(String test) { return getName(test, getInputName()); } private static String getName(String test, String name) { return String.format("%s/%s", test, name); } }
Version data entries
4 entries across 4 versions & 1 rubygems