BAEL-1064 opt assertions (#2810)

This commit is contained in:
aietcn 2017-10-22 11:31:45 +08:00 committed by maibin
parent 0b19939bcd
commit 71de9142f0
1 changed files with 1 additions and 5 deletions

View File

@ -210,11 +210,7 @@ public class MicrometerAtlasTest {
timer.record(13, TimeUnit.SECONDS);
Map<String, Integer> quantileMap = extractTagValueMap(registry, Type.Gauge, 1e9);
assertThat(quantileMap.keySet(), hasItems("quantile=0.3", "quantile=0.5", "quantile=0.95"));
assertThat(quantileMap.get("quantile=0.3"), is(2));
assertThat(quantileMap.get("quantile=0.5"), is(3));
assertThat(quantileMap.get("quantile=0.95"), is(8));
assertThat(quantileMap, allOf(hasEntry("quantile=0.3", 2), hasEntry("quantile=0.5", 3), hasEntry("quantile=0.95", 8)));
}
private Map<String, Integer> extractTagValueMap(MeterRegistry registry, Type meterType, double valueDivisor) {