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()