marks.add(bm1);
marks.add(bm2);
marks.add(bm3);
/* Max News Age = 3 days */
CleanUpOperations ops = new CleanUpOperations(false, 0, false, 0, false, false, false, 0, true, 3, false, false, false);
{
CleanUpModel model = new CleanUpModel(ops, marks);
model.generate(new NullProgressMonitor());
List<CleanUpGroup> groups = model.getTasks();
/* Assert Filled */
assertEquals(2, groups.size());
List<CleanUpTask> tasks = groups.get(1).getTasks();
assertEquals(1, tasks.size());
assertEquals(true, tasks.get(0) instanceof NewsTask);
assertEquals(news1, ((NewsTask) tasks.get(0)).getNews().iterator().next().resolve());
}
/* Max News Age = 1 days */
ops = new CleanUpOperations(false, 0, false, 0, false, false, false, 0, true, 1, false, false, false);
{
CleanUpModel model = new CleanUpModel(ops, marks);
model.generate(new NullProgressMonitor());
List<CleanUpGroup> groups = model.getTasks();