added test for metrics with period in name
This commit is contained in:
@@ -39,6 +39,13 @@ public class DefaultServerMetricNamingTests {
|
||||
assertThat(name, is(equalTo("servo.testmetric")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nameWithPeriodWorks() {
|
||||
MonitorConfig config = MonitorConfig.builder("test.Metric") .build();
|
||||
String name = naming.getName(new Metric(config, System.currentTimeMillis(), 0));
|
||||
assertThat(name, is(equalTo("servo.test.metric")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void typeTagWorks() {
|
||||
MonitorConfig config = MonitorConfig.builder("testMetric")
|
||||
|
||||
Reference in New Issue
Block a user