Search in sources :

Example 11 with UTF_8

use of zipkin2.TestObjects.UTF_8 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);
}
Also used : DependencyLink(zipkin2.DependencyLink) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)8 Span (zipkin2.Span)7 DependencyLink (zipkin2.DependencyLink)2 Endpoint (zipkin2.Endpoint)2 ArrayList (java.util.ArrayList)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 Record (org.jooq.Record)1 SelectField (org.jooq.SelectField)1 Test (org.junit.jupiter.api.Test)1 WriteBuffer (zipkin2.internal.WriteBuffer)1 ZipkinAnnotations (zipkin2.storage.mysql.v1.internal.generated.tables.ZipkinAnnotations)1