@Test public void success() { ListenerUtils.success(); CodahaleMetrics metrics = (CodahaleMetrics) MetricsFactory.getInstance(); Counter counter = metrics.getMetricRegistry() .counter(MetricsConstant.LISTENER_SUCCESSES); assertThat(counter.getCount()).isEqualTo(1L); }
public static void success() { HiveMetricsHelper.incrementCounter(MetricsConstant.LISTENER_SUCCESSES); }
ListenerUtils { public static void success() { HiveMetricsHelper.incrementCounter(MetricsConstant.LISTENER_SUCCESSES); } }
ListenerUtils { public static void success() { HiveMetricsHelper.incrementCounter(MetricsConstant.LISTENER_SUCCESSES); } private  ListenerUtils(); }
ListenerUtils { public static void success() { HiveMetricsHelper.incrementCounter(MetricsConstant.LISTENER_SUCCESSES); } private  ListenerUtils(); static void success(); static void error(Exception e); }
ListenerUtils { public static void success() { HiveMetricsHelper.incrementCounter(MetricsConstant.LISTENER_SUCCESSES); } private  ListenerUtils(); static void success(); static void error(Exception e);  }