You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:22:37 UTC

[sling-org-apache-sling-commons-metrics] 17/23: SLING-4080 - API to capture/measure application-level metrics

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.metrics-0.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-metrics.git

commit a523422decd8499f346daa9aa505e3be3e116901
Author: Chetan Mehrotra <ch...@apache.org>
AuthorDate: Thu Jan 7 09:38:00 2016 +0000

    SLING-4080 - API to capture/measure application-level metrics
    
    Updated testcase
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/metrics@1723496 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/sling/commons/metrics/internal/MetricServiceTest.java   | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/test/java/org/apache/sling/commons/metrics/internal/MetricServiceTest.java b/src/test/java/org/apache/sling/commons/metrics/internal/MetricServiceTest.java
index 9dff1e9..7f1dec8 100644
--- a/src/test/java/org/apache/sling/commons/metrics/internal/MetricServiceTest.java
+++ b/src/test/java/org/apache/sling/commons/metrics/internal/MetricServiceTest.java
@@ -109,6 +109,13 @@ public class MetricServiceTest {
         assertSame(histo, service.histogram("test"));
     }
 
+    @Test(expected = IllegalArgumentException.class)
+    public void sameNameDifferentTypeMetric() throws Exception{
+        activate();
+        service.histogram("test");
+        service.timer("test");
+    }
+
     private MetricRegistry getRegistry(){
         return context.getService(MetricRegistry.class);
     }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.