use of org.jeasy.rules.support.reader.JsonRuleDefinitionReader in project easy-rules by j-easy.
the class JexlRuleFactoryTest method params.
@Parameters
public static Collection<Object[]> params() {
Map<String, Object> namespaces = new HashMap<>();
namespaces.put("sout", System.out);
JexlEngine jexlEngine = new JexlBuilder().namespaces(namespaces).strict(false).create();
return Arrays.asList(new Object[][] { { new JexlRuleFactory(new YamlRuleDefinitionReader(), jexlEngine), "yml" }, { new JexlRuleFactory(new JsonRuleDefinitionReader(), jexlEngine), "json" } });
}
Aggregations