tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From radcor...@apache.org
Subject [1/2] tomee git commit: Fixed tests.
Date Wed, 02 Jan 2019 18:53:58 GMT
Repository: tomee
Updated Branches:
  refs/heads/master a0e5348c8 -> cf6a82a91


Fixed tests.


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/e7e80823
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/e7e80823
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/e7e80823

Branch: refs/heads/master
Commit: e7e80823b6014eb2e2a45d25234a5b661eeed8b1
Parents: a0e5348
Author: Roberto Cortez <radcortez@yahoo.com>
Authored: Wed Jan 2 18:27:03 2019 +0000
Committer: Roberto Cortez <radcortez@yahoo.com>
Committed: Wed Jan 2 18:27:03 2019 +0000

----------------------------------------------------------------------
 .../src/test/java/org/superbiz/rest/WeatherServiceTest.java    | 2 +-
 .../test/java/org/superbiz/histogram/WeatherServiceTest.java   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/e7e80823/examples/mp-metrics-counted/src/test/java/org/superbiz/rest/WeatherServiceTest.java
----------------------------------------------------------------------
diff --git a/examples/mp-metrics-counted/src/test/java/org/superbiz/rest/WeatherServiceTest.java
b/examples/mp-metrics-counted/src/test/java/org/superbiz/rest/WeatherServiceTest.java
index f40042e..73624af 100644
--- a/examples/mp-metrics-counted/src/test/java/org/superbiz/rest/WeatherServiceTest.java
+++ b/examples/mp-metrics-counted/src/test/java/org/superbiz/rest/WeatherServiceTest.java
@@ -97,7 +97,7 @@ public class WeatherServiceTest {
                 .request()
                 .accept(MediaType.APPLICATION_JSON)
                 .get(String.class);
-        assertEquals("{\"weather_day_status\":{\"count\":1}}", metric);
+        assertEquals("{\"weather_day_status\":1}", metric);
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/tomee/blob/e7e80823/examples/mp-metrics-histogram/src/test/java/org/superbiz/histogram/WeatherServiceTest.java
----------------------------------------------------------------------
diff --git a/examples/mp-metrics-histogram/src/test/java/org/superbiz/histogram/WeatherServiceTest.java
b/examples/mp-metrics-histogram/src/test/java/org/superbiz/histogram/WeatherServiceTest.java
index 1f27616..7ecb552 100644
--- a/examples/mp-metrics-histogram/src/test/java/org/superbiz/histogram/WeatherServiceTest.java
+++ b/examples/mp-metrics-histogram/src/test/java/org/superbiz/histogram/WeatherServiceTest.java
@@ -98,7 +98,7 @@ public class WeatherServiceTest {
                 "# TYPE application:temperatures_mean_degrees F histogram\n" +
                 "application:temperatures_mean_degrees F 44.4\n" +
                 "# TYPE application:temperatures_stddev_degrees F histogram\n" +
-                "application:temperatures_stddev_degrees F 7.0710678118654755\n" +
+                "application:temperatures_stddev_degrees F 7.218494764607554\n" +
                 "# TYPE application:temperatures_degrees F histogram\n" +
                 "application:temperatures_degrees F{quantile=\"0.5\"} 45.0\n" +
                 "# TYPE application:temperatures_degrees F histogram\n" +
@@ -119,7 +119,7 @@ public class WeatherServiceTest {
                 "# TYPE application:org_superbiz_histogram_weather_service_temperatures_max
histogram\n" +
                 "application:org_superbiz_histogram_weather_service_temperatures_max 0.0\n"
+
                 "# TYPE application:org_superbiz_histogram_weather_service_temperatures_mean
histogram\n" +
-                "application:org_superbiz_histogram_weather_service_temperatures_mean NaN\n"
+
+                "application:org_superbiz_histogram_weather_service_temperatures_mean 0.0\n"
+
                 "# TYPE application:org_superbiz_histogram_weather_service_temperatures_stddev
histogram\n" +
                 "application:org_superbiz_histogram_weather_service_temperatures_stddev 0.0\n"
+
                 "# TYPE application:org_superbiz_histogram_weather_service_temperatures histogram\n"
+
@@ -143,7 +143,7 @@ public class WeatherServiceTest {
                 .request()
                 .accept(MediaType.APPLICATION_JSON)
                 .get(String.class);
-        final String expected = "{\"temperatures\":{\"count\":15,\"max\":55,\"mean\":44.4,\"min\":27,\"p50\":45.0,\"p75\":46.0,\"p95\":54.0,\"p98\":54.0,\"p99\":54.0,\"p999\":54.0,\"stddev\":7.0710678118654755,\"unit\":\"degrees
F\"},\"org.superbiz.histogram.WeatherService.temperatures\":{\"count\":0,\"max\":0,\"min\":0,\"p50\":0.0,\"p75\":0.0,\"p95\":0.0,\"p98\":0.0,\"p99\":0.0,\"p999\":0.0,\"stddev\":0.0,\"unit\":\"none\"}}";
+        final String expected = "{\"temperatures\":{\"count\":15,\"max\":55,\"mean\":44.4,\"min\":27,\"p50\":45.0,\"p75\":46.0,\"p95\":54.0,\"p98\":54.0,\"p99\":54.0,\"p999\":54.0,\"stddev\":7.218494764607554,\"unit\":\"degrees
F\"},\"org.superbiz.histogram.WeatherService.temperatures\":{\"count\":0,\"max\":0,\"mean\":0.0,\"min\":0,\"p50\":0.0,\"p75\":0.0,\"p95\":0.0,\"p98\":0.0,\"p99\":0.0,\"p999\":0.0,\"stddev\":0.0,\"unit\":\"none\"}}";
         assertEquals(expected, metric);
     }
 


Mime
View raw message