@Test public void testGetTimer() { metrics.getTimer("timer"); verify(factory).getTimer(anyString(), eq("timer")); }
public Timer getTimer(String name) { return factory.getTimer(base, name); }
Metrics { public Timer getTimer(String name) { return factory.getTimer(base, name); } }
Metrics { public Timer getTimer(String name) { return factory.getTimer(base, name); } Metrics(MetricsFactory factory, String prefix, Class<?> clazz);  Metrics(MetricsFactory factory, Class<?> clazz); }
Metrics { public Timer getTimer(String name) { return factory.getTimer(base, name); } Metrics(MetricsFactory factory, String prefix, Class<?> clazz);  Metrics(MetricsFactory factory, Class<?> clazz); Timer getTimer(String name); Counter getCounter(String name); Histogram getHistogram(String name); Meter getMeter(String name); }
Metrics { public Timer getTimer(String name) { return factory.getTimer(base, name); } Metrics(MetricsFactory factory, String prefix, Class<?> clazz);  Metrics(MetricsFactory factory, Class<?> clazz); Timer getTimer(String name); Counter getCounter(String name); Histogram getHistogram(String name); Meter getMeter(String name); static final String SEP; }