use of io.seata.serializer.protobuf.generated.HeartbeatMessageProto in project seata by seata.
the class HeartbeatMessageConvertorTest method test.
@Test
public void test() {
HeartbeatMessage heartbeatMessage = HeartbeatMessage.PING;
HeartbeatMessageConvertor convertor = new HeartbeatMessageConvertor();
HeartbeatMessageProto proto = convertor.convert2Proto(heartbeatMessage);
HeartbeatMessage real = convertor.convert2Model(proto);
assertThat(real).isEqualTo(heartbeatMessage);
}
Aggregations