Search in sources :

Example 11 with DependencyLink

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

Aggregations

DependencyLink (zipkin2.DependencyLink)9 ArrayList (java.util.ArrayList)4 Test (org.junit.Test)4 Span (zipkin2.Span)3 LocalDate (java.time.LocalDate)2 LinkedHashMap (java.util.LinkedHashMap)2 DependencyLinker (zipkin2.internal.DependencyLinker)2 CqlSession (com.datastax.oss.driver.api.core.CqlSession)1 PreparedStatement (com.datastax.oss.driver.api.core.cql.PreparedStatement)1 Kryo (com.esotericsoftware.kryo.Kryo)1 Input (com.esotericsoftware.kryo.io.Input)1 Output (com.esotericsoftware.kryo.io.Output)1 JavaSerializer (com.esotericsoftware.kryo.serializers.JavaSerializer)1 IOException (java.io.IOException)1 UncheckedIOException (java.io.UncheckedIOException)1 ByteBuffer (java.nio.ByteBuffer)1 Connection (java.sql.Connection)1 Arrays.asList (java.util.Arrays.asList)1 Iterator (java.util.Iterator)1 List (java.util.List)1