IfOperatorFactory implements OperatorFactory { @Override public IfOperator newOperator(OperatorContext context) { return new IfOperator(context); } @Inject  IfOperatorFactory(); String getType(); @Override IfOperator newOperator(OperatorContext context);  }
@Test public void testFail() throws IOException { try { Operator op = factory.newOperator(newContext( tempPath, newTaskRequest().withConfig(loadYamlResource("/io/digdag/standards/operator/if/fail.yml")))); op.run(); fail(); } catch (ConfigException ignore) { } catch (TaskExecutionException e) { fail(); } }