use of com.navercorp.pinpoint.test.TBaseRecorderAdaptor in project pinpoint by naver.
the class AgentStatMonitorTest method setUp.
@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
when(agentStatCollector.collect()).thenReturn(new TAgentStat());
this.tBaseRecorder = new TBaseRecorder<TAgentStatBatch>();
TBaseRecorderAdaptor recorderAdaptor = new TBaseRecorderAdaptor(tBaseRecorder);
ListenableDataSender listenableDataSender = new ListenableDataSender("testDataSender");
listenableDataSender.setListener(recorderAdaptor);
this.dataSender = listenableDataSender;
}
Aggregations