Minor improvement to Assert failure message in ITNeutronE2E 07/67207/2
authorMichael Vorburger <vorburger@redhat.com>
Tue, 16 Jan 2018 13:29:09 +0000 (14:29 +0100)
committerIsaku Yamahata <isaku.yamahata@gmail.com>
Tue, 16 Jan 2018 19:20:21 +0000 (19:20 +0000)
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 <vorburger@redhat.com>
integration/test/src/test/java/org/opendaylight/neutron/e2etest/ITNeutronE2E.java

index 2a14560618095cb68b4fca39732811cbac000fd4..166b01664aed5ef89a5dca649b50b0e339e7a8e8 100644 (file)
@@ -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);
     }