}
}
assertTrue (resOP != null);
assertTrue (resMLipp != null);
// get current number of work items
ExtActivity act = null;
for (Iterator i = testProc.steps().iterator(); i.hasNext ();) {
act = (ExtActivity)i.next();
if (act.name().equals ("RAS Test A1")) {
break;
}
}
assertTrue (act.name().equals ("RAS Test A1"));
// assign
Collection assmnts = act.assignments ();
WfAssignment amnt = (WfAssignment)assmnts.iterator().next ();
assertTrue (resMLipp.resourceKey (), amnt.assignee().resourceKey()
.equals (resMLipp.resourceKey()));
amnt.setAssignee (resOP);
assertTrue (amnt.assignee().resourceKey()
.equals (resOP.resourceKey()));
// re-get assignment to make sure
assmnts = act.assignments ();
assertTrue (assmnts.size() == 1);
Iterator i = assmnts.iterator();
WfAssignment assmnt = (WfAssignment)i.next();
assertTrue (assmnt.assignee().resourceKey()
.equals (resOP.resourceKey()));