ZipkinRule implements TestRule { public int httpRequestCount() { return server.getRequestCount(); } ZipkinRule(); String httpUrl(); int httpRequestCount(); InMemoryCollectorMetrics collectorMetrics(); ZipkinRule storeSpans(List<Span> spans); ZipkinRule enqueueFailure(HttpFailure failure); List<List<Span>> getTraces(); @Nullable List<Span> getTrace(String traceId); List<DependencyLink> getDependencies(); void start(int httpPort); void shutdown(); @Override Statement apply(Statement base, Description description);  }
@Test public void httpRequestCountIncrements() throws IOException { postSpansV1(spans); postSpansV1(spans); assertThat(zipkin.httpRequestCount()).isEqualTo(2); }