@Test public void testMomentTimeZone() throws Exception { assertThat( engine.eval(loadYamlResource("/io/digdag/core/agent/eval/moment.dig"), params().set("timezone", "Asia/Tokyo")), is(loadYamlResource("/io/digdag/core/agent/eval/moment_expected_jst.dig"))); }
protected Config eval(Config config, Config params) throws TemplateException { ObjectNode object = config.convert(ObjectNode.class); ObjectNode built = new Context(params).evalObjectRecursive(object); return config.getFactory().create(built); }
ConfigEvalEngine implements TemplateEngine { protected Config eval(Config config, Config params) throws TemplateException { ObjectNode object = config.convert(ObjectNode.class); ObjectNode built = new Context(params).evalObjectRecursive(object); return config.getFactory().create(built); } }
ConfigEvalEngine implements TemplateEngine { protected Config eval(Config config, Config params) throws TemplateException { ObjectNode object = config.convert(ObjectNode.class); ObjectNode built = new Context(params).evalObjectRecursive(object); return config.getFactory().create(built); } @Inject  ConfigEvalEngine(); }
ConfigEvalEngine implements TemplateEngine { protected Config eval(Config config, Config params) throws TemplateException { ObjectNode object = config.convert(ObjectNode.class); ObjectNode built = new Context(params).evalObjectRecursive(object); return config.getFactory().create(built); } @Inject  ConfigEvalEngine(); @Override String template(String content, Config params); }
ConfigEvalEngine implements TemplateEngine { protected Config eval(Config config, Config params) throws TemplateException { ObjectNode object = config.convert(ObjectNode.class); ObjectNode built = new Context(params).evalObjectRecursive(object); return config.getFactory().create(built); } @Inject  ConfigEvalEngine(); @Override String template(String content, Config params);  }