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.");