use of io.engineblock.activityapi.core.ActionDispenser in project engineblock by engineblock.
the class DiagActivityTypeTest method testDiagActivity.
@Test
public void testDiagActivity() {
DiagActivityType da = new DiagActivityType();
da.getName();
ActivityDef ad = ActivityDef.parseActivityDef("type=diag;");
DiagActivity a = da.getActivity(ad);
a.initActivity();
ActionDispenser actionDispenser = da.getActionDispenser(a);
Action action = actionDispenser.getAction(1);
action.runCycle(1L);
}
use of io.engineblock.activityapi.core.ActionDispenser in project engineblock by engineblock.
the class StdoutActivityTypeTest method testDiagActivity.
@Test
public void testDiagActivity() {
StdoutActivityType stdoutAt = new StdoutActivityType();
String atname = stdoutAt.getName();
assertThat(atname.equals("stdout"));
ActivityDef ad = ActivityDef.parseActivityDef("type=stdout; yaml=stdout-test;");
StdoutActivity stdoutActivity = stdoutAt.getActivity(ad);
ActionDispenser actionDispenser = stdoutAt.getActionDispenser(stdoutActivity);
Action action = actionDispenser.getAction(1);
}
Aggregations