Merge "Acceptance tests: Add method to create admin user"

This commit is contained in:
Shawn Pearce 2013-09-15 22:02:55 +00:00 committed by Gerrit Code Review
commit 6edf9f6dad

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);
}