use of com.navercorp.pinpoint.web.vo.GetTraceInfo in project pinpoint by naver.
the class FilteringSpanDecoderTest method decodeTest1.
@Test
public void decodeTest1() {
SpanDecoder mockSpanDecoder = createMockSpanDecoder();
GetTraceInfo getTraceInfo = createGetTraceInfo();
SpanQueryBuilder builder = new SpanQueryBuilder();
SpanQuery query = builder.build(getTraceInfo);
FilteringSpanDecoder filteringSpanDecoder = new FilteringSpanDecoder(mockSpanDecoder, query.getSpanFilter());
Object result = filteringSpanDecoder.decode(null, null, null);
Assert.assertNull(result);
}
use of com.navercorp.pinpoint.web.vo.GetTraceInfo in project pinpoint by naver.
the class FilteringSpanDecoderTest method decodeTest4.
@Test
public void decodeTest4() {
final String applicationId = "test";
SpanBo spanBo = Random.createSpanBo(applicationId);
SpanDecoder mockSpanDecoder = createMockSpanDecoder(spanBo);
GetTraceInfo getTraceInfo = new GetTraceInfo(spanBo.getTransactionId(), new SpanHint(spanBo.getCollectorAcceptTime(), spanBo.getElapsed(), null));
SpanQueryBuilder builder = new SpanQueryBuilder();
SpanQuery query = builder.build(getTraceInfo);
FilteringSpanDecoder filteringSpanDecoder = new FilteringSpanDecoder(mockSpanDecoder, query.getSpanFilter());
Object result = filteringSpanDecoder.decode(null, null, null);
Assert.assertNotNull(result);
}
Aggregations