use of com.navercorp.pinpoint.thrift.dto.flink.TFResponseTime in project pinpoint by naver.
the class JoinResponseTimeBoMapperTest method map2Test.
@Test
public void map2Test() {
final String agentId = "agentId";
final TFResponseTime tFResponseTime = new TFResponseTime();
tFResponseTime.setAvg(100);
final TFAgentStat tFAgentStat = new TFAgentStat();
tFAgentStat.setAgentId(agentId);
tFAgentStat.setTimestamp(1491274148454L);
JoinResponseTimeBoMapper mapper = new JoinResponseTimeBoMapper();
JoinResponseTimeBo joinResponseTimeBo = mapper.map(tFAgentStat);
assertEquals(joinResponseTimeBo, JoinResponseTimeBo.EMPTY_JOIN_RESPONSE_TIME_BO);
}
use of com.navercorp.pinpoint.thrift.dto.flink.TFResponseTime in project pinpoint by naver.
the class JoinResponseTimeBoMapperTest method mapTest.
@Test
public void mapTest() {
final String agentId = "agentId";
final TFResponseTime tFResponseTime = new TFResponseTime();
tFResponseTime.setAvg(100);
final TFAgentStat tFAgentStat = new TFAgentStat();
tFAgentStat.setAgentId(agentId);
tFAgentStat.setTimestamp(1491274148454L);
tFAgentStat.setResponseTime(tFResponseTime);
JoinResponseTimeBoMapper mapper = new JoinResponseTimeBoMapper();
JoinResponseTimeBo joinResponseTimeBo = mapper.map(tFAgentStat);
assertEquals(joinResponseTimeBo.getId(), agentId);
assertEquals(joinResponseTimeBo.getTimestamp(), 1491274148454L);
assertEquals(joinResponseTimeBo.getResponseTimeJoinValue(), new JoinLongFieldBo(100L, 100L, agentId, 100L, agentId));
}
Aggregations