コード例 #1
0
  @Override
  @SuppressWarnings("unchecked")
  public void setUpTest() {
    userService = (UserService) getBean(UserService.ID);

    reportService = (ReportService) getBean(ReportService.ID);

    dashboardContentStore =
        (GenericStore<DashboardContent>) getBean("org.hisp.dhis.dashboard.DashboardContentStore");

    userA = createUser('A');
    userService.addUser(userA);

    reportA = new Report("ReportA", TYPE_JASPER_REPORT_TABLE, "DesignA", new ReportTable());
    reportService.saveReport(reportA);

    contentA = new DashboardContent();
    contentB = new DashboardContent();
  }