You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bi...@apache.org on 2012/12/04 12:31:26 UTC

svn commit: r1416893 - in /camel/trunk/components/camel-jmx/src/test: java/org/apache/camel/component/jmx/JMXMonitorTypeLongCounterTest.java resources/monitor-consumer/monitorNotificationLong.xml

Author: bibryam
Date: Tue Dec  4 11:31:26 2012
New Revision: 1416893

URL: http://svn.apache.org/viewvc?rev=1416893&view=rev
Log:
Added missing test file and enabled ignored test

Added:
    camel/trunk/components/camel-jmx/src/test/resources/monitor-consumer/monitorNotificationLong.xml
Modified:
    camel/trunk/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXMonitorTypeLongCounterTest.java

Modified: camel/trunk/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXMonitorTypeLongCounterTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXMonitorTypeLongCounterTest.java?rev=1416893&r1=1416892&r2=1416893&view=diff
==============================================================================
--- camel/trunk/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXMonitorTypeLongCounterTest.java (original)
+++ camel/trunk/components/camel-jmx/src/test/java/org/apache/camel/component/jmx/JMXMonitorTypeLongCounterTest.java Tue Dec  4 11:31:26 2012
@@ -25,7 +25,6 @@ import org.junit.Test;
 
 public class JMXMonitorTypeLongCounterTest extends SimpleBeanFixture {
     
-    @Ignore("monitorNotificationLong.xml is missing!")
     @Test
     public void counter() throws Exception {
 

Added: camel/trunk/components/camel-jmx/src/test/resources/monitor-consumer/monitorNotificationLong.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jmx/src/test/resources/monitor-consumer/monitorNotificationLong.xml?rev=1416893&view=auto
==============================================================================
--- camel/trunk/components/camel-jmx/src/test/resources/monitor-consumer/monitorNotificationLong.xml (added)
+++ camel/trunk/components/camel-jmx/src/test/resources/monitor-consumer/monitorNotificationLong.xml Tue Dec  4 11:31:26 2012
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<MonitorNotification xmlns="urn:org.apache.camel.component:jmx">
+    <source>TestDomain:name=camel-jmx-monitor</source>
+    <message/>
+    <sequence>0</sequence>
+    <type>jmx.monitor.counter.threshold</type>
+    <derivedGauge>3</derivedGauge>  
+    <observedAttribute>LongNumber</observedAttribute>
+    <observedObject>TestDomain:name=simpleBean</observedObject>
+    <trigger>2</trigger>
+</MonitorNotification>