use of com.wavefront.agent.queueing.TaskQueue in project java by wavefrontHQ.
the class ReportSourceTagHandlerTest method setup.
@Before
public void setup() {
mockAgentAPI = EasyMock.createMock(SourceTagAPI.class);
taskQueueFactory = new TaskQueueFactory() {
@Override
public <T extends DataSubmissionTask<T>> TaskQueue<T> getTaskQueue(@Nonnull HandlerKey handlerKey, int threadNum) {
return null;
}
};
newAgentId = UUID.randomUUID();
senderTaskFactory = new SenderTaskFactoryImpl(new APIContainer(null, mockAgentAPI, null), newAgentId, taskQueueFactory, null, new DefaultEntityPropertiesFactoryForTesting());
handlerKey = HandlerKey.of(ReportableEntityType.SOURCE_TAG, "4878");
sourceTagHandler = new ReportSourceTagHandlerImpl(handlerKey, 10, senderTaskFactory.createSenderTasks(handlerKey), null, blockedLogger);
}
Aggregations