From d30f6548eef059b5aa0e98fd5d2fe771a77f3d1c Mon Sep 17 00:00:00 2001 From: Andrew Donald Kennedy Date: Mon, 16 Apr 2012 10:47:44 +0100 Subject: [PATCH] Use Status enum not value --- .../v1_5/internal/BaseVCloudDirectorClientLiveTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/internal/BaseVCloudDirectorClientLiveTest.java b/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/internal/BaseVCloudDirectorClientLiveTest.java index 44cbe2b2b3..4995d55bca 100644 --- a/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/internal/BaseVCloudDirectorClientLiveTest.java +++ b/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/internal/BaseVCloudDirectorClientLiveTest.java @@ -450,7 +450,7 @@ public abstract class BaseVCloudDirectorClientLiveTest extends BaseContextLiveTe } // Shutdown and power off the VApp if necessary - if (vApp.getStatus().equals(Status.POWERED_ON.getValue())) { + if (vApp.getStatus() == Status.POWERED_ON) { try { Task shutdownTask = vAppClient.shutdown(vAppURI); taskDoneEventually(shutdownTask);