psdi.app.report.unittest

Class ReportLabelSyncCronTaskTest

  • java.lang.Object
    • psdi.app.report.unittest.ReportLabelSyncCronTaskTest


  • public class ReportLabelSyncCronTaskTest
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void compareLabelResults()
      Generating request pages from Report Admin builds the REPLIBRARY presentation and then uses PresentationLoader to import the presentation and save the labels.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReportLabelSyncCronTaskTest

        public ReportLabelSyncCronTaskTest()
    • Method Detail

      • compareLabelResults

        public void compareLabelResults()
        Generating request pages from Report Admin builds the REPLIBRARY presentation and then uses PresentationLoader to import the presentation and save the labels. The REPORTADHOCLABELSYNIC cron task imports labels without generating the presentation. The cron task methods must be manually updated when changes are made to the request page. This tests whether the request pages are out of sync with the cron task. The presentation parsing is mocked for this test. Just as with the real PresentationParser, it produces a map of labels found in the presentation. The cron task method does update the database, and the test reads maxlables to generate the label map. The two label maps are then compared. This does not need to be tested on a localized environment.
        See Also:
        ReportUtil.updateReportLabels(UserInfo ui), PresentationParser.parse()