use of com.navercorp.pinpoint.web.applicationmap.appender.histogram.NodeHistogramFactory in project pinpoint by naver.
the class ApplicationMapBuilderTest method testEmptyCallData.
@Test
public void testEmptyCallData() {
Range range = Range.newRange(0, 1000);
LinkDataDuplexMap linkDataDuplexMap = new LinkDataDuplexMap();
NodeHistogramFactory nodeHistogramFactory = new DefaultNodeHistogramFactory(mapResponseNodeHistogramDataSource);
ServerInstanceListFactory serverInstanceListFactory = new DefaultServerInstanceListFactory(agentInfoServerInstanceListDataSource);
ApplicationMapBuilder applicationMapBuilder = ApplicationMapBuilderTestHelper.createApplicationMapBuilder(range, serialExecutor);
ApplicationMapBuilder applicationMapBuilder_parallelAppenders = ApplicationMapBuilderTestHelper.createApplicationMapBuilder(range, parallelExecutor);
ApplicationMap applicationMap = applicationMapBuilder.includeNodeHistogram(nodeHistogramFactory).includeServerInfo(serverInstanceListFactory).build(linkDataDuplexMap, buildTimeoutMillis);
ApplicationMap applicationMap_parallelAppenders = applicationMapBuilder_parallelAppenders.includeNodeHistogram(nodeHistogramFactory).includeServerInfo(serverInstanceListFactory).build(linkDataDuplexMap, buildTimeoutMillis);
Assert.assertTrue(applicationMap.getNodes().isEmpty());
Assert.assertTrue(applicationMap.getNodes().isEmpty());
Assert.assertTrue(applicationMap_parallelAppenders.getNodes().isEmpty());
Assert.assertTrue(applicationMap.getLinks().isEmpty());
Assert.assertTrue(applicationMap.getLinks().isEmpty());
Assert.assertTrue(applicationMap_parallelAppenders.getLinks().isEmpty());
ApplicationMapVerifier verifier = new ApplicationMapVerifier(applicationMap);
verifier.verify(applicationMap);
verifier.verify(applicationMap_parallelAppenders);
}
Aggregations