Search in sources :

Example 1 with DefaultDatabaseReportListService

use of org.opennms.web.svclayer.support.DefaultDatabaseReportListService in project opennms by OpenNMS.

the class DefaultDatabaseReportListServiceTest method setupDao.

@Before
public void setupDao() throws Exception {
    m_globalReportRepository = EasyMock.createNiceMock(GlobalReportRepository.class);
    EasyMock.expect(m_globalReportRepository.getAllOnlineReports()).andReturn(new ArrayList<BasicReportDefinition>());
    EasyMock.expect(m_globalReportRepository.getAllOnlineReports()).andReturn(new ArrayList<BasicReportDefinition>());
    EasyMock.replay(m_globalReportRepository);
    m_defaultDatabaseReportListService = new DefaultDatabaseReportListService();
    m_defaultDatabaseReportListService.setGlobalReportRepository(m_globalReportRepository);
}
Also used : DefaultDatabaseReportListService(org.opennms.web.svclayer.support.DefaultDatabaseReportListService) GlobalReportRepository(org.opennms.features.reporting.repository.global.GlobalReportRepository) BasicReportDefinition(org.opennms.features.reporting.model.basicreport.BasicReportDefinition) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 BasicReportDefinition (org.opennms.features.reporting.model.basicreport.BasicReportDefinition)1 GlobalReportRepository (org.opennms.features.reporting.repository.global.GlobalReportRepository)1 DefaultDatabaseReportListService (org.opennms.web.svclayer.support.DefaultDatabaseReportListService)1