Use value of Role enum

This commit is contained in:
Andrew Donald Kennedy 2012-04-10 15:54:47 +01:00
parent 9dbdbb13a7
commit ad1250984b
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public class VCloudDirectorTestSession {
User user = adminContext.getApi().getUserClient().getUser(userRef.getHref());
Reference orgAdmin = user.getRole();
assertTrue(equal(orgAdmin.getName(), DefaultRoles.ORG_ADMIN), "must give org admin or user-only credentials");
assertTrue(equal(orgAdmin.getName(), DefaultRoles.ORG_ADMIN.value()), "must give org admin or user-only credentials");
String adminIdentity = "testAdmin"+BaseVCloudDirectorClientLiveTest.getTestDateTimeStamp();
String adminCredential = "testAdminPassword";