activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [3/3] activemq-artemis git commit: NO-JIRA server control test update
Date Wed, 29 Mar 2017 20:00:43 GMT
NO-JIRA server control test update


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

Branch: refs/heads/master
Commit: 6ddcda55dbf61d73f2b43f0004b0c6de5101f97c
Parents: 30ec72b
Author: Justin Bertram <jbertram@apache.org>
Authored: Wed Mar 29 10:03:42 2017 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Wed Mar 29 16:00:26 2017 -0400

----------------------------------------------------------------------
 .../ActiveMQServerControlUsingCoreTest.java     | 24 +++++++-------------
 1 file changed, 8 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6ddcda55/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java
index 75e72fd..ad2d813 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java
@@ -32,14 +32,6 @@ public class ActiveMQServerControlUsingCoreTest extends ActiveMQServerControlTes
 
    // Static --------------------------------------------------------
 
-   private static String[] toStringArray(final Object[] res) {
-      String[] names = new String[res.length];
-      for (int i = 0; i < res.length; i++) {
-         names[i] = res[i].toString();
-      }
-      return names;
-   }
-
    // Constructors --------------------------------------------------
 
    // Public --------------------------------------------------------
@@ -252,12 +244,12 @@ public class ActiveMQServerControlUsingCoreTest extends ActiveMQServerControlTes
 
          @Override
          public String[] getAddressNames() {
-            return ActiveMQServerControlUsingCoreTest.toStringArray((Object[]) proxy.retrieveAttributeValue("addressNames"));
+            return (String[]) proxy.retrieveAttributeValue("addressNames", String.class);
          }
 
          @Override
          public String[] getQueueNames() {
-            return ActiveMQServerControlUsingCoreTest.toStringArray((Object[]) proxy.retrieveAttributeValue("queueNames",
String.class));
+            return (String[]) proxy.retrieveAttributeValue("queueNames", String.class);
          }
 
          @Override
@@ -292,17 +284,17 @@ public class ActiveMQServerControlUsingCoreTest extends ActiveMQServerControlTes
          }
 
          public String[] getInterceptorClassNames() {
-            return ActiveMQServerControlUsingCoreTest.toStringArray((Object[]) proxy.retrieveAttributeValue("incomingInterceptorClassNames"));
+            return (String[]) proxy.retrieveAttributeValue("incomingInterceptorClassNames",
String.class);
          }
 
          @Override
          public String[] getIncomingInterceptorClassNames() {
-            return ActiveMQServerControlUsingCoreTest.toStringArray((Object[]) proxy.retrieveAttributeValue("incomingInterceptorClassNames"));
+            return (String[]) proxy.retrieveAttributeValue("incomingInterceptorClassNames",
String.class);
          }
 
          @Override
          public String[] getOutgoingInterceptorClassNames() {
-            return ActiveMQServerControlUsingCoreTest.toStringArray((Object[]) proxy.retrieveAttributeValue("outgoingInterceptorClassNames"));
+            return (String[]) proxy.retrieveAttributeValue("outgoingInterceptorClassNames",
String.class);
          }
 
          @Override
@@ -769,7 +761,7 @@ public class ActiveMQServerControlUsingCoreTest extends ActiveMQServerControlTes
 
          @Override
          public String[] getBridgeNames() {
-            return ActiveMQServerControlUsingCoreTest.toStringArray((Object[]) proxy.retrieveAttributeValue("bridgeNames"));
+            return (String[]) proxy.retrieveAttributeValue("bridgeNames", String.class);
          }
 
          @Override
@@ -790,7 +782,7 @@ public class ActiveMQServerControlUsingCoreTest extends ActiveMQServerControlTes
 
          @Override
          public String[] getConnectorServices() {
-            return ActiveMQServerControlUsingCoreTest.toStringArray((Object[]) proxy.retrieveAttributeValue("connectorServices"));
+            return (String[]) proxy.retrieveAttributeValue("connectorServices", String.class);
          }
 
          @Override
@@ -809,7 +801,7 @@ public class ActiveMQServerControlUsingCoreTest extends ActiveMQServerControlTes
 
          @Override
          public String[] getDivertNames() {
-            return ActiveMQServerControlUsingCoreTest.toStringArray((Object[]) proxy.retrieveAttributeValue("divertNames"));
+            return (String[]) proxy.retrieveAttributeValue("divertNames", String.class);
          }
 
          @Override


Mime
View raw message