Add extra test for getVolume

This commit is contained in:
Andrew Donald Kennedy 2011-11-22 11:11:25 +00:00
parent 42a2cc73e4
commit 7a2c6c6edd
1 changed files with 5 additions and 0 deletions

View File

@ -108,6 +108,11 @@ public class VolumeClientLiveTest extends BaseCloudStackClientLiveTest {
}
}
public void testGetVolumeNonexistantId() {
Volume found = client.getVolumeClient().getVolume(-1);
assertNull(found);
}
public void testCreateVolumeFromDiskofferingInZoneAndDeleteVolume() {
// Pick some disk offering
long diskOfferingId = Iterables.get(client.getOfferingClient().listDiskOfferings(), 0).getId();