use of org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor in project metron by apache.
the class AssignmentCommandTest method setup.
@Before
public void setup() throws Exception {
command = new AssignmentCommand();
// setup the executor
Properties props = new Properties();
executor = new DefaultStellarShellExecutor(props, Optional.empty());
executor.init();
}
use of org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor in project metron by apache.
the class CommentTest method setup.
@Before
public void setup() throws Exception {
// setup the %magic
magic = new Comment();
// setup the executor
Properties props = new Properties();
executor = new DefaultStellarShellExecutor(props, Optional.empty());
executor.init();
}
use of org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor in project metron by apache.
the class MagicDefineGlobalTest method setup.
@Before
public void setup() throws Exception {
// setup the %magic
magic = new MagicDefineGlobal();
// setup the executor
Properties props = new Properties();
executor = new DefaultStellarShellExecutor(props, Optional.empty());
executor.init();
}
use of org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor in project metron by apache.
the class MagicListFunctionsTest method setup.
@Before
public void setup() throws Exception {
// setup the %magic
magic = new MagicListFunctions();
// setup a function resolver - only 3 functions have been defined
SimpleFunctionResolver functionResolver = new SimpleFunctionResolver().withClass(StringFunctions.ToString.class).withClass(StringFunctions.ToLower.class).withClass(StringFunctions.ToUpper.class);
// setup the executor
Properties props = new Properties();
executor = new DefaultStellarShellExecutor(functionResolver, props, Optional.empty());
executor.init();
}
use of org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor in project metron by apache.
the class MagicListGlobalsTest method setup.
@Before
public void setup() throws Exception {
// setup the %magic
magic = new MagicListGlobals();
// setup the executor
Properties props = new Properties();
executor = new DefaultStellarShellExecutor(props, Optional.empty());
executor.init();
}
Aggregations