From 1068aebfd1bdda8a69832c9c1013762bebcc52ff Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Tue, 16 Jan 2018 14:29:09 +0100 Subject: [PATCH] Minor improvement to Assert failure message in ITNeutronE2E this helped in understanding the test failure in NEUTRON-154, and could help again in the future if we ever screw it up again. Change-Id: Id3aa992c487fbc3ccd4910dab0d9f30c7ab9a520 Signed-off-by: Michael Vorburger --- .../java/org/opendaylight/neutron/e2etest/ITNeutronE2E.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/test/src/test/java/org/opendaylight/neutron/e2etest/ITNeutronE2E.java b/integration/test/src/test/java/org/opendaylight/neutron/e2etest/ITNeutronE2E.java index 2a1456061..166b01664 100644 --- a/integration/test/src/test/java/org/opendaylight/neutron/e2etest/ITNeutronE2E.java +++ b/integration/test/src/test/java/org/opendaylight/neutron/e2etest/ITNeutronE2E.java @@ -268,8 +268,8 @@ public class ITNeutronE2E extends AbstractMdsalTestBase { JsonElement jsonElementValue = entrySet.iterator().next().getValue(); String key = entrySet.iterator().next().getKey(); Assert.assertEquals(context, collectionName, key); - Assert.assertTrue("E2E Tests Failed - Collection not Array: " + jsonElementValue, - jsonElementValue.isJsonArray()); + Assert.assertTrue("E2E Tests Failed - Collection not Array: " + jsonElementValue + "; URL: " + urlStr + + "; full response: " + response, jsonElementValue.isJsonArray()); JsonArray jsonArray = jsonElementValue.getAsJsonArray(); Assert.assertNotEquals(context, jsonArray.size(), 0); } -- 2.36.6