@Test public void testReportId() throws Exception { assertEquals("First report id test", "sample-report", m_legacyLocalReportsDao.getReports().get(0).getId()); assertEquals("Second report id test", "online-sample-report", m_legacyLocalReportsDao.getReports().get(1).getId()); assertEquals("Third report id test", "not-online-sample-report", m_legacyLocalReportsDao.getReports().get(2).getId()); }
@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();  }