use of zipkin2.DependencyLink in project zipkin by openzipkin.
the class JsonSerializersTest method dependencyLinkRoundTrip.
@Test
public void dependencyLinkRoundTrip() {
DependencyLink link = DependencyLink.newBuilder().parent("foo").child("bar").callCount(2).build();
assertThat(parse(JsonSerializers.DEPENDENCY_LINK_PARSER, new String(DependencyLinkBytesEncoder.JSON_V1.encode(link), UTF_8))).isEqualTo(link);
}
Aggregations