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

This commit is contained in:
Thiago Kronig 2015-05-08 21:06:49 -03:00 committed by Clebert Suconic
parent 27dd5c2652
commit 7ca05753bf
3 changed files with 6 additions and 4 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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);