added details when assertions fail

This commit is contained in:
Adrian Cole 2011-10-04 00:54:40 -07:00
parent 27dcb1dedc
commit d44ef35ecf
1 changed files with 2 additions and 2 deletions

View File

@ -497,8 +497,8 @@ public abstract class BaseComputeServiceLiveTest {
@Test(enabled = true, dependsOnMethods = "testSuspendResume") @Test(enabled = true, dependsOnMethods = "testSuspendResume")
public void testListNodes() throws Exception { public void testListNodes() throws Exception {
for (ComputeMetadata node : client.listNodes()) { for (ComputeMetadata node : client.listNodes()) {
assert node.getProviderId() != null; assert node.getProviderId() != null : node;
assert node.getLocation() != null; assert node.getLocation() != null : node;
assertEquals(node.getType(), ComputeType.NODE); assertEquals(node.getType(), ComputeType.NODE);
} }
} }