[activemq-artemis] branch master updated: ARTEMIS-2902 Fixing QueueControlUsingCoreTest Class Cast Exception on Long to Integer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[activemq-artemis] branch master updated: ARTEMIS-2902 Fixing QueueControlUsingCoreTest Class Cast Exception on Long to Integer

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

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e557f1  ARTEMIS-2902 Fixing QueueControlUsingCoreTest Class Cast Exception on Long to Integer
3e557f1 is described below

commit 3e557f107092de14e7cac2e4ac0828d54b72fd7d
Author: Clebert Suconic <[hidden email]>
AuthorDate: Wed Sep 16 09:56:41 2020 -0400

    ARTEMIS-2902 Fixing QueueControlUsingCoreTest Class Cast Exception on Long to Integer
---
 .../artemis/tests/integration/management/QueueControlUsingCoreTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 d8dce71..85ed6e3 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
@@ -52,7 +52,7 @@ public class QueueControlUsingCoreTest extends QueueControlTest {
          @Override
          public int getPreparedTransactionMessageCount() {
             try {
-               return (Integer) proxy.invokeOperation("getPreparedTransactionMessageCount");
+               return (Integer) proxy.invokeOperation(Integer.class, "getPreparedTransactionMessageCount");
             } catch (Exception e) {
                throw new RuntimeException(e.getMessage(), e);
             }