From 002b15e98201be62cef47a2a7c96294e45b871bf Mon Sep 17 00:00:00 2001 From: Alex Heneveld Date: Fri, 2 Dec 2011 15:24:02 +0000 Subject: [PATCH] grrr, enum usage wasn't picked up sooner, fixes for that --- .../org/jclouds/cloudstack/features/SnapshotClientLiveTest.java | 2 +- .../org/jclouds/cloudstack/features/VolumeClientLiveTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SnapshotClientLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SnapshotClientLiveTest.java index dbc5ab5513..991dbdd495 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SnapshotClientLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SnapshotClientLiveTest.java @@ -112,7 +112,7 @@ public class SnapshotClientLiveTest extends BaseCloudStackClientLiveTest { protected Volume getPreferredVolume() { for (Volume candidate : client.getVolumeClient().listVolumes()) { - if (candidate.getState() == Volume.State.Ready) + if (candidate.getState() == Volume.State.READY) return candidate; } throw new AssertionError("No suitable Volume found."); diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/VolumeClientLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/VolumeClientLiveTest.java index 985fe33c66..c7d0ee0722 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/VolumeClientLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/VolumeClientLiveTest.java @@ -135,7 +135,7 @@ public class VolumeClientLiveTest extends BaseCloudStackClientLiveTest { } protected Snapshot getPreferredSnapshot() { for (Snapshot candidate : client.getSnapshotClient().listSnapshots()) { - if (candidate.getState()==Snapshot.State.BackedUp) + if (candidate.getState()==Snapshot.State.BACKED_UP) return candidate; } throw new AssertionError("No suitable Snapshot found.");