Search in sources :

Example 1 with AccountManager

use of com.google.gerrit.server.account.AccountManager in project gerrit by GerritCodeReview.

the class AccountManagerIT method readOnlyFullNameField_authenticateWithUsernameAndUpdateDisplayName.

@Test
public void readOnlyFullNameField_authenticateWithUsernameAndUpdateDisplayName() throws Exception {
    TestRealm realm = server.getTestInjector().getInstance(TestRealm.class);
    realm.denyEdit(AccountFieldName.FULL_NAME);
    authenticateWithUsernameAndUpdateDisplayName(new AccountManager(sequences, cfg, accounts, Providers.of(accountsUpdate), accountCache, realm, userFactory, sshKeyCache, projectCache, externalIds, groupsUpdateFactory, setInactiveFlag, externalIdFactory, externalIdKeyFactory));
}
Also used : AccountManager(com.google.gerrit.server.account.AccountManager) Test(org.junit.Test) AbstractDaemonTest(com.google.gerrit.acceptance.AbstractDaemonTest)

Aggregations

AbstractDaemonTest (com.google.gerrit.acceptance.AbstractDaemonTest)1 AccountManager (com.google.gerrit.server.account.AccountManager)1 Test (org.junit.Test)1