use of com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadDump in project pinpoint by naver.
the class ActiveThreadDumpServiceTest method basicFunctionTest2.
@Test
public void basicFunctionTest2() throws Exception {
List<WaitingJob> waitingJobList = createWaitingJobList(CREATE_SIZE);
try {
List<ActiveTraceInfo> activeTraceInfoList = createMockActiveTraceInfoList(CREATE_SIZE, DEFAULT_TIME_MILLIS, TIME_DIFF_INTERVAL, waitingJobList);
TCmdActiveThreadDump tCmdActiveThreadDump = createRequest(0, null, Arrays.asList(1L));
ActiveThreadDumpService service = createService(activeTraceInfoList);
TCmdActiveThreadDumpRes response = (TCmdActiveThreadDumpRes) service.requestCommandService(tCmdActiveThreadDump);
Assert.assertEquals(1, response.getThreadDumpsSize());
} finally {
clearResource(waitingJobList);
}
}
Aggregations