@Test public void testGetEngine() throws Exception { assertEquals("Test get mocked engine from repository by ID", "mocked-jdbc", m_legacyLocalReportRepository.getEngine("sample-report")); }
@Override public String getEngine(String id) { id = id.substring(id.indexOf('_') + 1); return m_localJasperReportsDao.getEngine(id); }
LegacyLocalReportRepository implements ReportRepository { @Override public String getEngine(String id) { id = id.substring(id.indexOf('_') + 1); return m_localJasperReportsDao.getEngine(id); } }
LegacyLocalReportRepository implements ReportRepository { @Override public String getEngine(String id) { id = id.substring(id.indexOf('_') + 1); return m_localJasperReportsDao.getEngine(id); } LegacyLocalReportRepository(LocalReportsDao localReportsDao, LocalJasperReportsDao localJasperReportsDao); }
LegacyLocalReportRepository implements ReportRepository { @Override public String getEngine(String id) { id = id.substring(id.indexOf('_') + 1); return m_localJasperReportsDao.getEngine(id); } LegacyLocalReportRepository(LocalReportsDao localReportsDao, LocalJasperReportsDao localJasperReportsDao); @Override List<BasicReportDefinition> getReports(); @Override List<BasicReportDefinition> getOnlineReports(); @Override String getReportService(String id); @Override String getDisplayName(String id); @Override String getEngine(String id); @Override InputStream getTemplateStream(String id); @Override String getRepositoryId(); @Override String getRepositoryName(); @Override String getRepositoryDescription(); @Override String getManagementUrl(); void setLocalReportsDao(LocalReportsDao localReportsDao); LocalReportsDao getLocalReportsDao(); void setLocalJasperReportsDao(LocalJasperReportsDao localJasperReportsDao); LocalJasperReportsDao getLocalJasperReportsDao(); @Override void loadConfiguration(); }
LegacyLocalReportRepository implements ReportRepository { @Override public String getEngine(String id) { id = id.substring(id.indexOf('_') + 1); return m_localJasperReportsDao.getEngine(id); } LegacyLocalReportRepository(LocalReportsDao localReportsDao, LocalJasperReportsDao localJasperReportsDao); @Override List<BasicReportDefinition> getReports(); @Override List<BasicReportDefinition> getOnlineReports(); @Override String getReportService(String id); @Override String getDisplayName(String id); @Override String getEngine(String id); @Override InputStream getTemplateStream(String id); @Override String getRepositoryId(); @Override String getRepositoryName(); @Override String getRepositoryDescription(); @Override String getManagementUrl(); void setLocalReportsDao(LocalReportsDao localReportsDao); LocalReportsDao getLocalReportsDao(); void setLocalJasperReportsDao(LocalJasperReportsDao localJasperReportsDao); LocalJasperReportsDao getLocalJasperReportsDao(); @Override void loadConfiguration();  }