public class TestSikuliWorker {
@Test
public void testExecuteScriptSuccessful1() {
Script script = new Script("test");
HashMap<String, String> args = new HashMap<String, String>();
args.put("a", "3");
script.setArgs(args);
ArrayList<String> source = new ArrayList<String>();
source.add("from sikuli.Sikuli import *");
source.add("print a");
script.setSource(source);
Worker worker = new SikuliWorker();
worker.work(script);
assertEquals(ScriptStatus.PASS, script.getStatus());
}