Acceptance tests: Add method to create admin user

Change-Id: I1da74e51e50f2bf67fb28c8ab5374dff10ea8ee8
This commit is contained in:
David Ostrovsky
2013-09-14 22:03:37 +02:00
parent 0309b790b4
commit 7e7a7d1dc9

View File

@@ -114,6 +114,12 @@ public class AccountCreator {
return create(username, null, username, (String[]) null);
}
public TestAccount admin()
throws UnsupportedEncodingException, OrmException, JSchException {
return create("admin", "admin@example.com", "Administrator",
"Administrators");
}
private AccountExternalId.Key getEmailKey(String email) {
return new AccountExternalId.Key(AccountExternalId.SCHEME_MAILTO, email);
}