mirror of https://github.com/apache/jclouds.git
grrr, enum usage wasn't picked up sooner, fixes for that
This commit is contained in:
parent
fd9bbd5d82
commit
002b15e982
|
@ -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.");
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue