Examples of AnnotationDateQuarterlyGroupingModel


Examples of org.pau.assetmanager.viewmodel.grouping.AnnotationDateQuarterlyGroupingModel

  public void checkQuarterly(PropertyBook propertyBook, List<Annotation> annotationsExpectedToBeUsedInQuarterly) {
    QuarterlyReportViewModel quarterlyReportViewModel = new QuarterlyReportViewModel();
    quarterlyReportViewModel.updateBookSelection(BookSelection
        .fromBook(propertyBook));
    quarterlyReportViewModel.setQuarterlyReportYear(2012);
    AnnotationDateQuarterlyGroupingModel quarterlyGroupingModel = quarterlyReportViewModel
        .getAnnotationsDateQuarterlyGroupingModel();
    Integer numberOfGroups = quarterlyGroupingModel.getGroupCount();
    // we expect 1 quarter (all the annotations are in the first quarter)
    Assert.assertEquals(new Integer(1), numberOfGroups);
    for (Integer currentQuarter = 0; currentQuarter < numberOfGroups; currentQuarter++) {
      List<Annotation> annotationsForQuarter = new LinkedList<Annotation>();
      for (Integer annotationIndex = 0; annotationIndex < quarterlyGroupingModel
          .getChildCount(currentQuarter); annotationIndex++) {
        Annotation currentAnnotation = quarterlyGroupingModel.getChild(currentQuarter, annotationIndex);
        annotationsForQuarter.add(currentAnnotation);
      }
      Assert.assertEquals(new Integer(annotationsExpectedToBeUsedInQuarterly.size()), new Integer(annotationsForQuarter.size()));
      Assert.assertTrue(annotationsForQuarter.containsAll(annotationsExpectedToBeUsedInQuarterly));
      QuarterlyHaciendaResults haciendaResults = QuarterlyHaciendaResults.compute(annotationsForQuarter.toArray(new Annotation[0]));
View Full Code Here

Examples of org.pau.assetmanager.viewmodel.grouping.AnnotationDateQuarterlyGroupingModel

      List<Annotation> annotationsExpectedToBeUsedInQuarterly) {
    QuarterlyReportViewModel quarterlyReportViewModel = new QuarterlyReportViewModel();
    quarterlyReportViewModel.updateBookSelection(BookSelection
        .fromBook(propertyBook));
    quarterlyReportViewModel.setQuarterlyReportYear(2012);
    AnnotationDateQuarterlyGroupingModel quarterlyGroupingModel = quarterlyReportViewModel
        .getAnnotationsDateQuarterlyGroupingModel();
    Integer numberOfGroups = quarterlyGroupingModel.getGroupCount();
    // we expect 1 quarter (all the annotations are in the first quarter)
    Assert.assertEquals(new Integer(1), numberOfGroups);
    for (Integer currentQuarter = 0; currentQuarter < numberOfGroups; currentQuarter++) {
      List<Annotation> annotationsForQuarter = new LinkedList<Annotation>();
      for (Integer annotationIndex = 0; annotationIndex < quarterlyGroupingModel
          .getChildCount(currentQuarter); annotationIndex++) {
        Annotation currentAnnotation = quarterlyGroupingModel.getChild(
            currentQuarter, annotationIndex);
        annotationsForQuarter.add(currentAnnotation);
      }
      Assert.assertEquals(new Integer(
          annotationsExpectedToBeUsedInQuarterly.size()),
View Full Code Here

Examples of org.pau.assetmanager.viewmodel.grouping.AnnotationDateQuarterlyGroupingModel

  }

  @DependsOn({"quarterlyReportYear","selectedBook"})
  public AnnotationDateQuarterlyGroupingModel getAnnotationsDateQuarterlyGroupingModel() {
    TestTolerantClients.clearBusy();
    return new AnnotationDateQuarterlyGroupingModel(
        getAnnotations(quarterlyReportYear),
        new AnnotationDateQuarterlyComparator(), true);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.