use of org.alfresco.heartbeat.RenditionsDataCollector in project alfresco-remote-api by Alfresco.
the class RenditionsDataCollectorTest method setUp.
@Before
public void setUp() {
mockDescriptorDAO = mock(DescriptorDAO.class);
mockCollectorService = mock(HBDataCollectorService.class);
mockScheduler = mock(HeartBeatJobScheduler.class);
Descriptor mockDescriptor = mock(Descriptor.class);
when(mockDescriptor.getId()).thenReturn("mock_id");
when(mockDescriptorDAO.getDescriptor()).thenReturn(mockDescriptor);
renditionsDataCollector = new RenditionsDataCollector("acs.repository.renditions", "1.0", "0 0 0 ? * *", mockScheduler);
renditionsDataCollector.setHbDataCollectorService(mockCollectorService);
renditionsDataCollector.setCurrentRepoDescriptorDAO(mockDescriptorDAO);
}
Aggregations