activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [53/57] [abbrv] activemq-6 git commit: Casting issue with management op over core
Date Tue, 28 Apr 2015 16:02:58 GMT
Casting issue with management op over core


Project: http://git-wip-us.apache.org/repos/asf/activemq-6/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-6/commit/9a6ae57d
Tree: http://git-wip-us.apache.org/repos/asf/activemq-6/tree/9a6ae57d
Diff: http://git-wip-us.apache.org/repos/asf/activemq-6/diff/9a6ae57d

Branch: refs/heads/master
Commit: 9a6ae57d458203e5b18f31b82ff1a625bef96830
Parents: 8f52a62
Author: jbertram <jbertram@redhat.com>
Authored: Mon Apr 27 10:24:18 2015 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon Apr 27 18:30:01 2015 -0400

----------------------------------------------------------------------
 .../integration/management/QueueControlUsingCoreTest.java   | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-6/blob/9a6ae57d/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlUsingCoreTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlUsingCoreTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlUsingCoreTest.java
index e84874d..1a01668 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlUsingCoreTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlUsingCoreTest.java
@@ -195,7 +195,14 @@ public class QueueControlUsingCoreTest extends QueueControlTest
           */
          public Long getFirstMessageAge() throws Exception
          {
-            return (Long) proxy.invokeOperation("getFirstMessageAge");
+            Object value = proxy.invokeOperation("getFirstMessageAge");
+
+            if (value instanceof Integer)
+            {
+               return ((Integer) value).longValue();
+            }
+
+            return (Long) value;
          }
 
          public String listMessageCounterHistoryAsHTML() throws Exception


Mime
View raw message