use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testEndPoint_first.
@Test
public void testEndPoint_first() throws Exception {
SpanEventBo spanEventBo = new SpanEventBo();
spanEventBo.setEndPoint("EndPoint");
SpanEventBitField bitField = SpanEventBitField.buildFirst(spanEventBo);
Assert.assertTrue(bitField.isSetEndPoint());
bitField.setEndPoint(false);
Assert.assertFalse(bitField.isSetEndPoint());
}
use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testServiceType_equals_next.
@Test
public void testServiceType_equals_next() throws Exception {
SpanEventBo prev = new SpanEventBo();
SpanEventBo current = new SpanEventBo();
prev.setServiceType((short) 2000);
current.setServiceType((short) 2000);
SpanEventBitField bitField = SpanEventBitField.build(current, prev);
Assert.assertEquals(bitField.getServiceTypeEncodingStrategy(), ServiceTypeEncodingStrategy.PREV_EQUALS);
}
use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testDestinationId_first.
@Test
public void testDestinationId_first() throws Exception {
SpanEventBo spanEventBo = new SpanEventBo();
spanEventBo.setDestinationId("DestinationId");
SpanEventBitField bitField = SpanEventBitField.buildFirst(spanEventBo);
Assert.assertTrue(bitField.isSetDestinationId());
bitField.setDestinationId(false);
Assert.assertFalse(bitField.isSetDestinationId());
}
use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testDepth_equals_next.
@Test
public void testDepth_equals_next() throws Exception {
SpanEventBo prev = new SpanEventBo();
SpanEventBo current = new SpanEventBo();
prev.setDepth(3);
current.setDepth(3);
SpanEventBitField bitField = SpanEventBitField.build(current, prev);
Assert.assertEquals(bitField.getDepthEncodingStrategy(), DepthEncodingStrategy.PREV_EQUALS);
}
use of com.navercorp.pinpoint.common.server.bo.SpanEventBo in project pinpoint by naver.
the class SpanEventBitFieldTest method testHasException_first.
@Test
public void testHasException_first() throws Exception {
SpanEventBo spanEventBo = new SpanEventBo();
spanEventBo.setExceptionInfo(100, "excetpion");
SpanEventBitField bitField = SpanEventBitField.buildFirst(spanEventBo);
Assert.assertTrue(bitField.isSetHasException());
bitField.setHasException(false);
Assert.assertFalse(bitField.isSetHasException());
}
Aggregations