Skip to content

Commit e6e0fa5

Browse files
author
Matthias Radestock
committed
merge default into bug20654
2 parents 056f0bc + 585aac2 commit e6e0fa5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/src/com/rabbitmq/client/test/functional/Permissions.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,18 +269,20 @@ protected void runTest(boolean expC, boolean expW, boolean expR,
269269
protected void runTest(boolean exp, String name, WithName test)
270270
throws IOException
271271
{
272+
String msg = "'" + name + "' -> " + exp;
272273
try {
273274
test.with(name);
274-
assertTrue(exp);
275+
assertTrue(msg, exp);
275276
} catch (IOException e) {
276-
assertFalse(exp);
277+
assertFalse(msg, exp);
277278
Throwable t = e.getCause();
278-
assertTrue(t instanceof ShutdownSignalException);
279+
assertTrue(msg, t instanceof ShutdownSignalException);
279280
Object r = ((ShutdownSignalException)t).getReason();
280-
assertTrue(r instanceof Command);
281+
assertTrue(msg, r instanceof Command);
281282
Method m = ((Command)r).getMethod();
282-
assertTrue(m instanceof AMQP.Channel.Close);
283-
assertEquals(AMQP.ACCESS_REFUSED,
283+
assertTrue(msg, m instanceof AMQP.Channel.Close);
284+
assertEquals(msg,
285+
AMQP.ACCESS_REFUSED,
284286
((AMQP.Channel.Close)m).getReplyCode());
285287
//This fails due to bug 20296
286288
//openChannel();

0 commit comments

Comments
 (0)