@Test public void sendsMeter() throws InterruptedException { registry.meter("meter").mark(1234); service.report(); assertThat(sender.data, hasItem(matchesRegex("test.meter.count=1234"))); assertThat(sender.data, hasItem(matchesRegex("test.meter.m1_rate=0.00"))); assertThat(sender.data, hasItem(matchesRegex("test.meter.m5_rate=0.00"))); assertThat(sender.data, hasItem(matchesRegex("test.meter.m15_rate=0.00"))); assertThat(sender.data, hasItem(matchesRegex("test.meter.mean_rate=.*"))); }
@VisibleForTesting void report() { this.reporter.report(); }
GraphiteReporterService extends AbstractStyxService { @VisibleForTesting void report() { this.reporter.report(); } }
GraphiteReporterService extends AbstractStyxService { @VisibleForTesting void report() { this.reporter.report(); } private  GraphiteReporterService(Builder builder); }
GraphiteReporterService extends AbstractStyxService { @VisibleForTesting void report() { this.reporter.report(); } private  GraphiteReporterService(Builder builder);  }
GraphiteReporterService extends AbstractStyxService { @VisibleForTesting void report() { this.reporter.report(); } private  GraphiteReporterService(Builder builder);   }