@Test public void addReportRepositoryTest() { assertEquals("Repository is initialized with one configured repository", 1, m_globalReportRepository.getRepositoryList().size()); m_globalReportRepository.addReportRepository(m_mockLocalReportRepository); assertEquals("One repository is added", 2, m_globalReportRepository.getRepositoryList().size()); }
@Override public void addReportRepository(ReportRepository repository) { logger.debug("addReportRepository was called for: '{}'", repository); m_repositoryList.add(repository); }
DefaultGlobalReportRepository implements GlobalReportRepository { @Override public void addReportRepository(ReportRepository repository) { logger.debug("addReportRepository was called for: '{}'", repository); m_repositoryList.add(repository); } }
DefaultGlobalReportRepository implements GlobalReportRepository { @Override public void addReportRepository(ReportRepository repository) { logger.debug("addReportRepository was called for: '{}'", repository); m_repositoryList.add(repository); } DefaultGlobalReportRepository(RemoteRepositoryConfigDao remoteRepositoryConfigDao, ReportRepository localReportRepository); }
DefaultGlobalReportRepository implements GlobalReportRepository { @Override public void addReportRepository(ReportRepository repository) { logger.debug("addReportRepository was called for: '{}'", repository); m_repositoryList.add(repository); } DefaultGlobalReportRepository(RemoteRepositoryConfigDao remoteRepositoryConfigDao, ReportRepository localReportRepository); @Override List<BasicReportDefinition> getAllReports(); @Override List<BasicReportDefinition> getReports(String repositoryId); @Override List<BasicReportDefinition> getAllOnlineReports(); @Override List<BasicReportDefinition> getOnlineReports(String repositoryId); @Override String getReportService(String reportId); @Override String getDisplayName(String reportId); @Override String getEngine(String reportId); @Override InputStream getTemplateStream(String reportId); @Override List<ReportRepository> getRepositoryList(); @Override void addReportRepository(ReportRepository repository); @Override ReportRepository getRepositoryById(String repositoryId); void setLocalReportRepository(ReportRepository reportRepository); ReportRepository getReportRepository(); void setRemoteRepositoryConfigDao(RemoteRepositoryConfigDao remoteRepositoryConfigDao); RemoteRepositoryConfigDao getRemoteRepositoryConfigDao(); @Override void reloadConfigurationFiles(); }
DefaultGlobalReportRepository implements GlobalReportRepository { @Override public void addReportRepository(ReportRepository repository) { logger.debug("addReportRepository was called for: '{}'", repository); m_repositoryList.add(repository); } DefaultGlobalReportRepository(RemoteRepositoryConfigDao remoteRepositoryConfigDao, ReportRepository localReportRepository); @Override List<BasicReportDefinition> getAllReports(); @Override List<BasicReportDefinition> getReports(String repositoryId); @Override List<BasicReportDefinition> getAllOnlineReports(); @Override List<BasicReportDefinition> getOnlineReports(String repositoryId); @Override String getReportService(String reportId); @Override String getDisplayName(String reportId); @Override String getEngine(String reportId); @Override InputStream getTemplateStream(String reportId); @Override List<ReportRepository> getRepositoryList(); @Override void addReportRepository(ReportRepository repository); @Override ReportRepository getRepositoryById(String repositoryId); void setLocalReportRepository(ReportRepository reportRepository); ReportRepository getReportRepository(); void setRemoteRepositoryConfigDao(RemoteRepositoryConfigDao remoteRepositoryConfigDao); RemoteRepositoryConfigDao getRemoteRepositoryConfigDao(); @Override void reloadConfigurationFiles();  }