assertNotNull( "Tasks should not be null", tasks );
assertTrue( tasks.size() > 0 );
}
public void testGetTasksForTeams() {
GroupID groupID = new GroupID( 1 );
TaskImpl task = new TaskImpl();
task.setTeamID( groupID );
task.setTaskDescription( "Task Description" );
task.setTaskExpirationDate( new Date() );
task.setSourceTokenID( new TokenID( 1 ) );
task.setTaskStatus( Task.TASK_INCOMPLETE );
task.setInstanceID( new InstanceID( 1 ) );
dao.insertTask( task );
List tasks = dao.getTasksForGroups(new GroupID[] { groupID, new GroupID( 2 )}, Task.TASK_INCOMPLETE );
assertNotNull( "Tasks should not be null", tasks );
assertTrue("No tasks found for team!", tasks.size() > 0);
}