/* Max News Age = 3 days and keep unread */
CleanUpOperations ops = new CleanUpOperations(false, 0, false, 0, false, false, false, false, 0, true, 3, false, false, true);
{
CleanUpModel model = new CleanUpModel(ops, marks);
model.generate(new NullProgressMonitor());
List<CleanUpGroup> groups = model.getTasks();
/* Assert Empty */
assertEquals(1, groups.size());
}
news1.removeLabel(label);
news2.setState(INews.State.READ);
DynamicDAO.save(news1);
DynamicDAO.save(news2);
{
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();