Github user rmannibucau commented on a diff in the pull request:
https://github.com/apache/tomee/pull/218#discussion_r236342580
--- Diff: examples/mp-metrics-timed/src/test/java/WeatherServiceTest.java
---
@@ -157,7 +159,10 @@ private void assertJsonFormat(final String metricPath)
{
};
Stream.of(expected)
- .forEach(text -> assertTrue("Expected: " + text + " to be
present in " + metric, metric.contains(text)));
+ .forEach(text ->
+ assertTrue(
+ "Expected: " + text + " to be present in "
+ metric,
+
expectedJson.getJsonObject("weather_day_status").get("count") != null));
--- End diff --
s/count/text/ ;)
---