use of org.apache.metron.stellar.dsl.Context in project metron by apache.
the class ShellFunctionsTest method testMap2TableInsufficientArgs.
@Test
public void testMap2TableInsufficientArgs() {
Map<String, Object> variables = new HashMap<>();
Context context = Context.EMPTY_CONTEXT();
Object out = run("SHELL_MAP2TABLE()", variables, context);
Assert.assertNull(out);
}
use of org.apache.metron.stellar.dsl.Context in project metron by apache.
the class ShellFunctionsTest method testListVarsWithoutVars.
@Test
public void testListVarsWithoutVars() {
Context context = new Context.Builder().with(Context.Capabilities.SHELL_VARIABLES, () -> new HashMap<>()).build();
Object out = run("SHELL_LIST_VARS()", new HashMap<>(), context);
Assert.assertEquals(expectedEmptyList, out);
}
Aggregations