@Test public void testReportAllowAccess() throws Exception { assertFalse("First report allow access test", m_legacyLocalReportsDao.getReports().get(0).getAllowAccess()); assertFalse("Second report allow access test", m_legacyLocalReportsDao.getReports().get(1).getAllowAccess()); assertFalse("Third report allow access test", m_legacyLocalReportsDao.getReports().get(2).getAllowAccess()); }
@Override public List<BasicReportDefinition> getReports() { ArrayList<BasicReportDefinition> resultList = new ArrayList<BasicReportDefinition>(); for (BasicReportDefinition report : m_legacyLocalReportsDefinition.getReportList()) { resultList.add(report); } return resultList; }
LegacyLocalReportsDao implements LocalReportsDao { @Override public List<BasicReportDefinition> getReports() { ArrayList<BasicReportDefinition> resultList = new ArrayList<BasicReportDefinition>(); for (BasicReportDefinition report : m_legacyLocalReportsDefinition.getReportList()) { resultList.add(report); } return resultList; } }
LegacyLocalReportsDao implements LocalReportsDao { @Override public List<BasicReportDefinition> getReports() { ArrayList<BasicReportDefinition> resultList = new ArrayList<BasicReportDefinition>(); for (BasicReportDefinition report : m_legacyLocalReportsDefinition.getReportList()) { resultList.add(report); } return resultList; } LegacyLocalReportsDao(Resource configResource); }
LegacyLocalReportsDao implements LocalReportsDao { @Override public List<BasicReportDefinition> getReports() { ArrayList<BasicReportDefinition> resultList = new ArrayList<BasicReportDefinition>(); for (BasicReportDefinition report : m_legacyLocalReportsDefinition.getReportList()) { resultList.add(report); } return resultList; } LegacyLocalReportsDao(Resource configResource); @Override void loadConfiguration(); @Override void setConfigResource(Resource configResource); @Override Resource getConfigResource(); @Override List<BasicReportDefinition> getReports(); @Override List<BasicReportDefinition> getOnlineReports(); @Override String getReportService(String id); @Override String getDisplayName(String id); void setLegacyLocalReportsDefinition(LegacyLocalReportsDefinition legacyLocalReportsDefinition); LegacyLocalReportsDefinition getLegacyLocalReportsDefinition(); }
LegacyLocalReportsDao implements LocalReportsDao { @Override public List<BasicReportDefinition> getReports() { ArrayList<BasicReportDefinition> resultList = new ArrayList<BasicReportDefinition>(); for (BasicReportDefinition report : m_legacyLocalReportsDefinition.getReportList()) { resultList.add(report); } return resultList; } LegacyLocalReportsDao(Resource configResource); @Override void loadConfiguration(); @Override void setConfigResource(Resource configResource); @Override Resource getConfigResource(); @Override List<BasicReportDefinition> getReports(); @Override List<BasicReportDefinition> getOnlineReports(); @Override String getReportService(String id); @Override String getDisplayName(String id); void setLegacyLocalReportsDefinition(LegacyLocalReportsDefinition legacyLocalReportsDefinition); LegacyLocalReportsDefinition getLegacyLocalReportsDefinition();  }