From 7e7a7d1dc9c1bf778690a5ac7f7953cc9943be86 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Sat, 14 Sep 2013 22:03:37 +0200 Subject: [PATCH] Acceptance tests: Add method to create admin user Change-Id: I1da74e51e50f2bf67fb28c8ab5374dff10ea8ee8 --- .../java/com/google/gerrit/acceptance/AccountCreator.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/AccountCreator.java b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/AccountCreator.java index f56ef07987..cb785b959f 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/AccountCreator.java +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/AccountCreator.java @@ -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); }