use of com.kixeye.chassis.support.metrics.MetricFilter in project chassis by Kixeye.
the class MetricsGraphiteConfigurationTest method testUpdateFilter.
@Test
public void testUpdateFilter() {
MetricFilter filter = metricsGraphiteConfiguration.getReporterLoader().getFilter();
Assert.assertEquals("foo=bar", filter.getStringValue());
ConfigurationManager.getConfigInstance().setProperty(removePlaceholder(MetricsGraphiteReporterLoader.METRICS_GRAPHITE_FILTER_PROPERTY_NAME), "foo=baz");
Assert.assertNotEquals(filter, metricsGraphiteConfiguration.getReporterLoader().getFilter());
Assert.assertEquals("foo=baz", metricsGraphiteConfiguration.getReporterLoader().getFilter().getStringValue());
}
Aggregations