protected File testDir;
private QuerierAndRunnerUtils utils;
public void testRun() {
TaskProcessor taskProcessor1 = null;
TaskProcessor taskProcessor2 = null;
try {
taskProcessor1 = (TaskProcessor) utils.getProcessor(Priority.getDefault()
.getValue(), "Executing", "running");
taskProcessor2 = (TaskProcessor) utils.getProcessor(Priority.getDefault()
.getValue(), "Executing", "running");
} catch (Exception e) {
fail(e.getMessage());
}
Metadata met = new Metadata();
met.addMetadata("StartDateTime", DateUtils.toString(Calendar.getInstance()));
taskProcessor1.getWorkflowInstance().getSharedContext().addMetadata(met);
taskProcessor2.getWorkflowInstance().getSharedContext().addMetadata(met);
try {
runner.execute(taskProcessor1);
runner.execute(taskProcessor2);
assertTrue(ranFast());