putVar("todo", "toDoItem", notYetComplete.get(0));
}
@When("^mark the item as complete${symbol_dollar}")
public void mark_it_as_complete() throws Throwable {
final ToDoItem toDoItem = getVar(null, "toDoItem", ToDoItem.class);
if(supportsMocks()) {
final Bulk.InteractionContext bulkInteractionContext = service(Bulk.InteractionContext.class);
checking(new Expectations() {
{
allowing(bulkInteractionContext);
}
});
toDoItem.injectBulkInteractionContext(bulkInteractionContext);
}
wrap(toDoItem).completed();
}