use of zipkin.TestObjects.TRACE in project zipkin by openzipkin.
the class InternalGuavaSpanStoreAdapterTest method getTraces_success.
@Test
public void getTraces_success() throws Exception {
QueryRequest request = QueryRequest.builder().build();
doAnswer(answer(c -> c.onSuccess(asList(TRACE)))).when(asyncSpanStore).getTraces(eq(request), any(Callback.class));
assertThat(spanStore.getTraces(request).get()).containsExactly(TRACE);
}
Aggregations