checkYearly(propertyBook, annotationsExpectedToBeUsedInYearly);
}
public void checkYearly(PropertyBook propertyBook,
List<Annotation> annotationsExpectedToBeUsedInYearly) {
YearlyReportViewModel yearlyReportViewModel = new YearlyReportViewModel();
yearlyReportViewModel.updateBookSelection(BookSelection
.fromBook(propertyBook));
yearlyReportViewModel.setYearlyReportYear(2012);
AnnotationDateYearlyGroupingModel annotationsDateYearlyGroupingModel = yearlyReportViewModel
.getAnnotationsDateYearlyGroupingModel();
Integer numberOfGroups = annotationsDateYearlyGroupingModel
.getGroupCount();
// we expect 1 property (the one selected)
Assert.assertEquals(new Integer(1), numberOfGroups);