Fixes an error caused by not using an assert by @CheckReturnValue. Also see jsr305

Conflicts:
	apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/InternalURLLiveTest.java
This commit is contained in:
Zack Shoylev 2015-07-28 09:49:58 -05:00
parent 6c94f3eb9e
commit 1a27a619d2
1 changed files with 64 additions and 63 deletions

View File

@ -17,6 +17,7 @@
package org.jclouds.openstack.nova.v2_0.functions; package org.jclouds.openstack.nova.v2_0.functions;
import static org.jclouds.Constants.PROPERTY_CONNECTION_TIMEOUT; import static org.jclouds.Constants.PROPERTY_CONNECTION_TIMEOUT;
import static org.testng.Assert.assertNotNull;
import java.util.Properties; import java.util.Properties;
@ -42,7 +43,7 @@ public class InternalURLLiveTest extends BaseNovaApiLiveTest {
String region = api.getConfiguredRegions().iterator().next(); String region = api.getConfiguredRegions().iterator().next();
// List current servers to ensure that can reach nova with internalUrl ip // List current servers to ensure that can reach nova with internalUrl ip
try { try {
api.getServerApi(region).list().concat().toList(); assertNotNull(api.getServerApi(region).list().concat().toList());
} catch (Exception e) { } catch (Exception e) {
Assert.fail("Could not retrieve servers list using the internalUrl", e); Assert.fail("Could not retrieve servers list using the internalUrl", e);
} }