From 632e0c3f66885f682b0e52f461a05fbcf0af91d4 Mon Sep 17 00:00:00 2001 From: Zack Shoylev Date: Tue, 28 Jul 2015 09:49:58 -0500 Subject: [PATCH] Fixes an error caused by not using an assert by @CheckReturnValue. Also see jsr305 --- .../openstack/nova/v2_0/functions/InternalURLLiveTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/InternalURLLiveTest.java b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/InternalURLLiveTest.java index 46807a343c..602831c416 100644 --- a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/InternalURLLiveTest.java +++ b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/InternalURLLiveTest.java @@ -17,6 +17,7 @@ package org.jclouds.openstack.nova.v2_0.functions; import static org.jclouds.Constants.PROPERTY_CONNECTION_TIMEOUT; +import static org.testng.Assert.assertNotNull; import java.util.Properties; @@ -42,7 +43,7 @@ public class InternalURLLiveTest extends BaseNovaApiLiveTest { String region = api.getConfiguredRegions().iterator().next(); // List current servers to ensure that can reach nova with internalUrl ip try { - api.getServerApi(region).list().concat().toList(); + assertNotNull(api.getServerApi(region).list().concat().toList()); } catch (Exception e) { Assert.fail("Could not retrieve servers list using the internalUrl", e); }