assertEquals(testUser.getId(), task.getOwner());
}
}
public void testExtendingTaskQueryListPage() {
TaskQuery query = taskService.createTaskQuery();
saveQuery(query);
List<Task> tasks = filterService.listPage(filter.getId(), 1, 2);
assertEquals(2, tasks.size());
tasks = filterService.listPage(filter.getId(), query, 1, 2);
assertEquals(2, tasks.size());
TaskQuery extendingQuery = taskService.createTaskQuery();
extendingQuery.taskDelegationState(DelegationState.RESOLVED);
tasks = filterService.listPage(filter.getId(), extendingQuery, 1, 2);
assertEquals(1, tasks.size());
assertEquals(DelegationState.RESOLVED, tasks.get(0).getDelegationState());