@Test public void testMatches_WithShortIntervalEnv() throws Exception { EnvUtils.setEnvs(new String[][] { getCustomMetricsEnv("1000") }); CustomMetricsConfiguration config = CustomMetricsConfigurationFactory.create(); assertFalse(config.isEnabled()); assertEquals(CustomMetricsConfiguration.DEFAULT_INTERVAL, config.getInterval()); List<String> metrics = config.getMetrics(); assertEquals(2, metrics.size()); assertTrue(metrics.contains("timer")); assertTrue(metrics.contains("summary")); }
public static CustomMetricsConfiguration create() { return create(System.getenv()); }
CustomMetricsConfigurationFactory { public static CustomMetricsConfiguration create() { return create(System.getenv()); } }
CustomMetricsConfigurationFactory { public static CustomMetricsConfiguration create() { return create(System.getenv()); }  }
CustomMetricsConfigurationFactory { public static CustomMetricsConfiguration create() { return create(System.getenv()); }  static CustomMetricsConfiguration create(); static CustomMetricsConfiguration create(Map<String, String> env); }
CustomMetricsConfigurationFactory { public static CustomMetricsConfiguration create() { return create(System.getenv()); }  static CustomMetricsConfiguration create(); static CustomMetricsConfiguration create(Map<String, String> env);  }