grrr, enum usage wasn't picked up sooner, fixes for that

This commit is contained in:
Alex Heneveld 2011-12-02 15:24:02 +00:00
parent fd9bbd5d82
commit 002b15e982
2 changed files with 2 additions and 2 deletions

View File

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

View File

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