activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [01/10] activemq-artemis git commit: Fix integration-tests: Arrays.toString(..) and ignored AssertionError
Date Thu, 21 May 2015 23:45:33 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 27cbc92a9 -> 30416db00


Fix integration-tests: Arrays.toString(..) and ignored AssertionError


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

Branch: refs/heads/master
Commit: 7ca05753bfe227d4e2c99f932ee63c88d4df8e62
Parents: 27dd5c2
Author: Thiago Kronig <caa_tkronig@uolinc.com>
Authored: Fri May 8 21:06:49 2015 -0300
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Thu May 21 19:45:01 2015 -0400

----------------------------------------------------------------------
 .../artemis/tests/integration/client/LargeMessageTest.java      | 3 ++-
 .../artemis/tests/integration/discovery/DiscoveryTest.java      | 2 +-
 .../tests/integration/management/ManagementHelperTest.java      | 5 +++--
 3 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7ca05753/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
index 02fd208..65bdea8 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
@@ -235,8 +235,9 @@ public class LargeMessageTest extends LargeMessageTestBase
          msg1.getBodyBuffer().readByte();
          Assert.fail("Exception was expected");
       }
-      catch (Throwable ignored)
+      catch (final Exception ignored)
       {
+         // empty on purpose
       }
 
       session.close();

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7ca05753/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryTest.java
index 82037a1..84a03f6 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryTest.java
@@ -391,7 +391,7 @@ public class DiscoveryTest extends DiscoveryBaseTest
 
          byte[] btreceived = client.receiveBroadcast(5, TimeUnit.SECONDS);
 
-         System.out.println("BTReceived = " + btreceived);
+         System.out.println("BTReceived = " + Arrays.toString(btreceived));
 
          assertNotNull(btreceived);
 

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7ca05753/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
index dbf5266..d6c2da7 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
@@ -16,6 +16,7 @@
  */
 package org.apache.activemq.artemis.tests.integration.management;
 
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -193,12 +194,12 @@ public class ManagementHelperTest extends Assert
       String key1 = RandomUtil.randomString();
       String[] val1 = new String[]{"a", "b", "c"};
 
-      ManagementHelperTest.log.info("val1 type is " + val1);
+      ManagementHelperTest.log.info("val1 type is " + Arrays.toString(val1));
 
       String key2 = RandomUtil.randomString();
       Integer[] val2 = new Integer[]{1, 2, 3, 4, 5};
 
-      ManagementHelperTest.log.info("val2 type is " + val2);
+      ManagementHelperTest.log.info("val2 type is " + Arrays.toString(val2));
 
       map.put(key1, val1);
       map.put(key2, val2);


Mime
View raw message