/** * Closes and removes static Metrics instance. */ public synchronized static void close() throws Exception { if (metrics != null) { metrics.close(); metrics = null; } } }
@After public void tearDown() throws Exception { MetricsFactory.getInstance().close(); }
/** * Closes and removes static Metrics instance. */ public synchronized static void close() throws Exception { if (metrics != null) { metrics.close(); metrics = null; } } }